{{ Form::hidden('start_latitude', null, [ 'id' => 'start_latitude'] ) }}
{{ Form::hidden('start_longitude', null, [ 'id' => 'start_longitude']) }}
{{ Form::hidden('end_latitude', null, [ 'id' => 'end_latitude'] ) }}
{{ Form::hidden('end_longitude', null, [ 'id' => 'end_longitude']) }}
{{ Form::label('rider_id', __('message.rider').' *', ['class' => 'form-control-label'], false) }}
{{ Form::select('rider_id', isset($id) ? [ optional($data->rider)->id => optional($data->rider)->display_name ] : [] , old('rider_id') , [
'data-ajax--url' => route('ajax-list', [ 'type' => 'rider' ]),
'class' =>'form-control select2js',
'data-placeholder' => __('message.select_field', [ 'name' => __('message.rider') ]),
'required'
])
}}
{{ Form::label('start_address', __('message.start_address').' *',['class' => 'form-control-label'], false) }}
{{ Form::text('start_address', old('start_address'),[ 'placeholder' => __('message.start_address'),'class' =>'form-control', 'required']) }}
{{ Form::label('end_address', __('message.end_address').' *',['class' => 'form-control-label'], false) }}
{{ Form::text('end_address', old('end_address'),[ 'placeholder' => __('message.end_address'),'class' =>'form-control', 'required']) }}
{{ Form::submit( __('message.book_now'), [ 'class'=> 'btn btn-md btn-primary float-right', 'data-form' => 'ajax' ] ) }}