@include('partials._provider')
{{ $pageTitle ?? __('messages.list') }}
@if($auth_user->can('provideraddress list')) {{ __('messages.back') }} @endif
{{ Form::model($provideraddress ?? '',['method' => 'POST','route'=>'provideraddress.store', 'data-toggle'=>"validator" ,'id'=>'provideraddress'] ) }} {{ Form::hidden('id') }}
@if(auth()->user()->hasAnyRole(['admin','demo_admin']))
{{ Form::label('provider_id', __('messages.select_name',[ 'select' => __('messages.providers') ]).' *',['class'=>'form-control-label'],false) }}
{{ Form::select('provider_id',[$providerdata->id => $providerdata->display_name],$providerdata->id, [ 'class' => 'select2js form-group providers', 'required', 'data-placeholder' => __('messages.select_name',[ 'select' => __('messages.providers') ]), // 'data-ajax--url' => route('ajax-list', ['type' => 'provider']), ]) }}
@endif
{{ Form::label('latitude',__('messages.latitude').' ',['class'=>'form-control-label'], false ) }} {{ Form::number('latitude',old('latitude'), ['id' => 'latitude', 'placeholder' => '00.0000','class' =>'form-control','step'=>'any']) }}
{{ Form::label('longitude',__('messages.longitude').' ',['class'=>'form-control-label'], false ) }} {{ Form::number('longitude',old('longitude'), ['id' => 'longitude', 'placeholder' => '00.0000','class' =>'form-control','step'=>'any']) }}
{{ Form::label('status',__('messages.status').' *',['class'=>'form-control-label'],false) }} {{ Form::select('status',['1' => __('messages.active') , '0' => __('messages.inactive') ],old('status'),[ 'id' => 'role' ,'class' =>'form-control select2js','required']) }}
{{ Form::label('address',__('messages.address').' *',['class'=>'form-control-label'],false) }} {{ Form::textarea('address', null, ['id' => 'address-input', 'class'=>"form-control textarea" , 'required','rows'=>3 , 'placeholder'=> __('messages.address') ]) }}
{{ Form::submit( __('messages.save'), ['class'=>'btn btn-md btn-primary float-right']) }} {{ Form::close() }}