@if (count($errors) > 0)
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
×
Hurray! Customer added successfully. Check Drop-down.
×
Your current driver is not available in the chosen times. Available driver has been selected.
×
Your current vehicle is not available in the chosen times. Available vehicle has been selected.
{!! Form::open(['route' => ['bookings.update',$data->id],'method'=>'PATCH']) !!}
{!! Form::hidden('user_id',Auth::user()->id)!!}
{!! Form::hidden('status',0)!!}
{!! Form::hidden('id',$data->id)!!}
{!! Form::label('customer_id',__('fleet.selectCustomer'), ['class' => 'form-label']) !!}
{!! Form::label('vehicle_id',__('fleet.selectVehicle'), ['class' => 'form-label']) !!}
{!! Form::label('vehicle_id',__('fleet.selectDriver'), ['class' => 'form-label']) !!}
{!! Form::label('travellers',__('fleet.no_travellers'), ['class' => 'form-label']) !!}
{!! Form::number('travellers',$data->travellers,['class'=>'form-control','min'=>1]) !!}
{!! Form::label('pickup_addr',__('fleet.pickup_addr'), ['class' => 'form-label']) !!}
{!! Form::textarea('pickup_addr',$data->pickup_addr,['class'=>'form-control','required']) !!}
{!! Form::label('dest_addr',__('fleet.dropoff_addr'), ['class' => 'form-label']) !!}
{!! Form::textarea('dest_addr',$data->dest_addr,['class'=>'form-control','required']) !!}
{!! Form::label('note',__('fleet.note'), ['class' => 'form-label']) !!}
{!! Form::textarea('note',$data->note,['class'=>'form-control','placeholder'=>__('fleet.book_note')]) !!}
{!! Form::submit(__('fleet.update'), ['class' => 'btn btn-warning']) !!}
{!! Form::close() !!}