- {!! __('Dashboard') !!}
- {!! __('driver_list') !!}
- {!! __('add_driver') !!}
{!! __('add_driver') !!}
@if (count($errors) > 0)
@endif
@if(session()->has('message'))
{!! Form::open(['route' => 'drivers.store', 'method' => 'post', 'id' => 'ajax-submit', 'files' => 'true']) !!}
{!! Form::hidden('step1', 'step1', array('class' => 'form-control','id' => 'step1'))!!}
{!! Form::close() !!}
{!! Form::open(['route' => ['drivers.store'], 'method' => 'post', 'id' => 'ajax-submitStep2','files' => true]) !!}
{!! 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::open(['route' => ['drivers.store'], 'method' => 'post', 'id' => 'ajax-submitStep3','files' => true]) !!}
{!! Form::hidden('step3', 'step3', array('class' => 'form-control','id' => 'step3'))!!}
{!! Form::hidden('driver_id', isset($_GET['id'])?$_GET['id']:null, array('class' => 'form-control','id' => 'driverId'))!!}
{!! Form::close() !!}
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{ session()->get('message') }}
@endif
{!! 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','required' => 'required','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', null, ['class' => 'form-control date', 'placeholder' => 'eg: YYYY-MM-DD','autocomplete'=>'off','onkeydown' => 'event.preventDefault()','required' => 'required']) !!}
{!! 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('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::label('profile_pic', __('profile_pic')) !!}
{!! Form::file('profile_pic',array('class' => 'custom-file-input','id' => 'profile_pic','required' => 'required')) !!}
{{-- {!! Form::label('Profile Picture', 'Profile Picture',array('class' => 'custom-file-label')) !!} --}}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! 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', null, 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', null, 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','id' => 'driver_license_exp_date','autofocus' => 'autofocus','placeholder' => 'Driver License Expiry Date'))!!} --}}
{!! Form::text('dl_expiry_date', null, ['class' => 'form-control date', 'placeholder' => 'eg: YYYY-MM-DD','autocomplete'=>'off','onkeydown' => 'event.preventDefault()']) !!}
{!! Form::label('vehicle_image', __('vehicle_image')) !!}
{!! Form::file('vehicle_image',array('class' => 'custom-file-input','id' => 'vehicle_image')) !!}
{!! Form::label('Vehicle Image', 'Vehicle Image',array('class' => 'custom-file-label')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Form::label('driver_license_image', __('driver_license_image')) !!}
{!! Form::file('driver_license_image',array('class' => 'custom-file-input','id' => 'driver_license')) !!}
{!! Form::label('Driver License', 'Driver License',array('class' => 'custom-file-label')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Form::label('vehicle_license_image', __('vehicle_license_image')) !!}
{!! Form::file('vehicle_license_image',array('class' => 'custom-file-input','id' => 'vehicle_license')) !!}
{!! Form::label('Vehicle License', 'Vehicle License',array('class' => 'custom-file-label')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Form::label('insurance_image', __('insurance_image')) !!}
{!! Form::file('insurance_image',array('class' => 'custom-file-input','id' => 'insurance')) !!}
{!! Form::label('Insurance', 'Insurance',array('class' => 'custom-file-label')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Form::label('road_worthiness', __('road_worthiness')) !!}
{!! Form::file('road_worthiness',array('class' => 'custom-file-input','id' => 'road_worthiness')) !!}
{!! Form::label('Road worthiness', 'Road Worthiness',array('class' => 'custom-file-label')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
{!! Form::label('proof_of_ownership', __('proof_of_ownership')) !!}
{!! Form::file('proof_of_ownership',array('class' => 'custom-file-input','id' => 'proof_of_ownership')) !!}
{!! Form::label('Proof of Ownership', 'Proof of Ownership',array('class' => 'custom-file-label')) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif