- {!! __('Dashboard') !!}
- {!! __('driver_list') !!}
- {!! __('edit_driver') !!}
{!! __('edit_driver') !!}
Edit Driver
@if (count($errors) > 0)
@endif
@if(session()->has('message'))
{!! Form::model($driverDetail[0],['route' => ['drivers.update',$driver->id] , 'method' => 'POST','files' => true, 'id' => 'ajax-submitStep2']) !!}
{!! Form::hidden('step2', 'step2', array('class' => 'form-control','id' => 'step2'))!!}
{!! Form::hidden('driver_id', isset($_GET['id'])?$_GET['id']:null, array('class' => 'form-control','id' => 'driverId'))!!}
{!! Form::close() !!}
{!! Form::model($driverDetail[0],['route' => ['drivers.update',$driver->id] , 'method' => 'POST','files' => true, 'id' => 'ajax-submitStep3']) !!}
{!! Form::hidden('step3', 'step3', array('class' => 'form-control','id' => 'step3'))!!}
{!! Form::close() !!}
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{ session()->get('message') }}
@endif
{!! Form::model($driver,['route' => ['drivers.update',$driver->id] , 'method' => 'POST','files' => true, 'id' => 'ajax-submit']) !!}
{!! Form::hidden('step1', 'step1', array('class' => 'form-control','id' => 'step1'))!!}
{!! Form::close() !!}
{!! Form::label('full_name', 'Full name',array('class' => 'required')) !!}
{!! Form::text('name', null, array('class' => 'form-control','id' => 'full_name','required' => 'required', 'autofocus' => 'autofocus','placeholder' => 'Full name'))!!}
{!! Form::label('Email', 'Email',array('class' => 'required')) !!}
{!! Form::email('email', null, array('class' => 'form-control','id' => 'email','required' => 'required','placeholder' => 'Email')) !!}
✓ Valid
{!! Form::hidden('dial_code', null, array('class' => 'form-control','id' => 'dial_code'))!!}
{!! Form::label('Password', 'Password',array('class' => 'required')) !!}
{!! Form::password('password', ['class' => 'form-control awesome','id' => 'password','placeholder' => 'Password']) !!}
{!! Form::label('Language', 'Language',array('class' => 'required')) !!}
{!! Form::select('language', ['English' => 'English', 'French' => 'French'], 'E', array('class' => 'form-control','id' => 'language','required' => 'required')) !!}
{!! Form::label('Date of Birth', 'Date of Birth',array('class' => 'required')) !!}
{!! Form::text('dob', $driver->dob, array('class' => 'form-control date','required' => 'required', 'autocomplete' => 'off','placeholder' => 'Date of Birth','onkeydown' => 'event.preventDefault()'))!!}
{!! Form::label('Address', 'Address',array('class' => 'required')) !!}
{!! Form::textarea('address', null, array('class' => 'form-control','id' => 'address','required' => 'required','placeholder' => 'Address', 'rows' => 4, 'cols' => 40)) !!}
{!! Form::label('Country', 'Country') !!}
{!! Form::select('country', $data['countries'], null, ['class' => 'form-control select2 __country','id' => 'country', 'data-route' => route('country.states')]) !!}
{!! Form::label('State', 'State') !!}
{!! Form::select('state', $data['states'], null, ['class' => 'form-control select2 __state','id' => 'state','data-route' => route('country.city')]) !!}
{{-- {!! Form::label('State', 'State') !!}
{!! Form::select('state', $data['states'],$driver->state, [
'class' => 'form-control select2 __state','id' => 'state', 'data-route' => route('country.city')]) !!} --}}
{!! Form::label('City', 'City') !!}
{!! Form::select('city',$data['cities'], null, ['class' => 'form-control select2 __city','id' => 'city']) !!}
{!! Form::label('Postal Code', 'Postal Code',array('class' => 'required')) !!}
{!! Form::text('postal_code', null, array('class' => 'form-control','id' => 'postal_code','required' => 'required', 'autofocus' => 'autofocus','placeholder' => 'Postal Code'))!!}
{!! Form::file('profile_pic',array('class' => 'custom-file-input','id' => 'profile_pic')) !!}
{!! Form::label('Profile Picture', 'Profile Picture',array('class' => 'custom-file-label')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Html::image(apiImage($driver->profile_pic),'No Image',array( 'width' => 100, 'height' => 100 )) !!}
{!! Form::checkbox('is_activated', '1',true) !!}
{!! Form::label('Active', 'Active') !!}
{!! Form::label('Vehicle Category', 'Vehicle Category') !!}
{!! Form::select('vehicle_category_id', $data['category'], null, ['class' => 'form-control select2 __vehicle_category','id' => 'vehicle_category_id','data-route' => route('vehicleType.service')]) !!}
{{-- --}}
{!! Form::label('Vehicle Type', 'Vehicle Type') !!}
{{-- {!! Form::select('vehicle_type_id', $data['types'], null, ['class' => 'form-control select2 __vehicle_type','id' => 'vehicle_type_id']) !!} --}}
{!! Form::label('Vehicle Make', 'Vehicle Make') !!}
{!! Form::select('vehicle_make_id', $data['make'], null, ['class' => 'form-control select2 __vehicle_make','id' => 'vehicle_make_id','data-route' => route('vehicleModel.service')]) !!}
{!! Form::label('Vehicle Model', 'Vehicle Model') !!}
{{-- {!! Form::select('vehicle_model_id', $data['models'], null, ['class' => 'form-control select2 __vehicle_model','id' => 'vehicle_model']) !!} --}}
{!! Form::label('Vehicle Color', 'Vehicle Color') !!}
{!! Form::select('vehicle_color_id', $data['colors'], null, ['class' => 'form-control select2 __vehicle_color','id' => 'vehicle_color']) !!}
{!! Form::label('Vehicle Manufacturing Year', 'Vehicle Manufacturing Year') !!}
{!! Form::text('mfg_year', null, array('class' => 'form-control numbersOnly','id' => 'mfg_year','autofocus' => 'autofocus','placeholder' => 'Vehicle Manufacturing Year'))!!}
{!! Form::label('License Plate Number', 'License Plate Number') !!}
{!! Form::text('license_plate_no', $driverDetail[0]->license_plate_no, array('class' => 'form-control','id' => 'license_plate_no', 'autofocus' => 'autofocus','placeholder' => 'License Plate Number'))!!}
{!! Form::label('Driver License Number', 'Driver License Number') !!}
{!! Form::text('driver_license_no', $driver->driver_license_no, array('class' => 'form-control ','id' => 'driver_license_number', 'autofocus' => 'autofocus','placeholder' => 'Driver License Number'))!!}
{!! Form::label('Driver License Expiry Date', 'Driver License Expiry Date') !!}
{!! Form::text('dl_expiry_date', null, array('class' => 'form-control date','autocomplete' => 'off','placeholder' => 'YYYY-MM-DD','onkeydown' => 'event.preventDefault()'))!!}
{!! Form::label('vehicle_image', __('vehicle_image')) !!}
{!! Form::file('vehicle_image',array('class' => 'custom-file-input','id' => 'vehicle_image')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Html::image(apiImage($driverDetail[0]->vehicle_image),'No Image',array( 'width' => 100, 'height' => 100 )) !!}
{!! Form::label('driving_license', __('driving_license')) !!}
{!! Form::file('driver_license_image',array('class' => 'custom-file-input','id' => 'driver_license')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Html::image(apiImage($driverDetail[0]->driver_license_image),'No Image',array( 'width' => 100, 'height' => 100 )) !!}
{!! Form::label('vehicle_license', __('vehicle_license')) !!}
{!! Form::file('vehicle_license_image',array('class' => 'custom-file-input','id' => 'vehicle_license')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Html::image(apiImage($driverDetail[0]->vehicle_license_image),'No Image',array( 'width' => 100, 'height' => 100 )) !!}
{!! Form::label('insurance', __('insurance')) !!}
{!! Form::file('insurance_image',array('class' => 'custom-file-input','id' => 'insurance')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Html::image(apiImage($driverDetail[0]->insurance_image),'No Image',array( 'width' => 100, 'height' => 100 )) !!}
{!! Form::label('road_worthiness', __('road_worthiness')) !!}
{!! Form::file('road_worthiness',array('class' => 'custom-file-input','id' => 'road_worthiness')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Html::image(apiImage($driverDetail[0]->road_worthiness),'No Image',array( 'width' => 100, 'height' => 100 )) !!}
{!! Form::label('proof_of_ownership', __('proof_of_ownership')) !!}
{!! Form::file('proof_of_ownership',array('class' => 'custom-file-input','id' => 'proof_of_ownership')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Html::image(apiImage($driverDetail[0]->proof_of_ownership),'No Image',array( 'width' => 100, 'height' => 100 )) !!}