Viewing file: edit.blade.php (3.81 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
{{ Form::model($driver, array('route' => array('driver.update', $driver->id), 'method' => 'POST','enctype' => 'multipart/form-data')) }} <input type="hidden" name="id" value="{{isset($driver->id)?$driver->id:''}}"> <div class="modal-body">
<div class="row"> <div class="form-group col-md-12">
{{ Form::label('name', __('Name'),['class'=>'form-label']) }} {{ Form::text('name', null, array('class' => 'form-control','required'=>'required')) }}
@error('name') <small class="invalid-name" role="alert"> <strong class="text-danger">{{ $message }}</strong> </small> @enderror </div> <div class="form-group col-md-12"> {{ Form::label('email', __('Email'),['class'=>'form-label']) }} {{ Form::email('email', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-12"> {{ Form::label('password', __('Password'), array('class' => 'form-label')) }} {{ Form::password('password', array('class' => 'form-control')) }} </div> <div class="form-group col-md-12"> {{Form::label('phone_number',__('Phone Number'),array('class'=>'form-label')) }} {{ Form::number('phone_number', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-12"> {{Form::label('image',__('Image'),array('class'=>'form-label')) }} <br> {{Form::file('driver_profile_image',null,array('class'=>'form-control'))}} </div> <div class="form-group col-md-6"> {{Form::label('license_info',__('License info'),array('class'=>'form-label')) }} <br> {{ Form::text('license_info', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-6"> {{Form::label('license_info_file',__('License info(file)'),array('class'=>'form-label')) }} <br> <input type="file" name="license_info_file" class="form-control" id="license_info_file"> </div>
<div class="form-group col-md-6"> {{Form::label('insurance_info',__('Insurance info'),array('class'=>'form-label')) }} <br> {{ Form::text('insurance_info', null, array('class' => 'form-control','required'=>'required')) }} </div>
<div class="form-group col-md-6"> {{Form::label('insurance_info_file',__('Insurance info(file)'),array('class'=>'form-label')) }} <br> <input type="file" name="insurance_info_file" class="form-control" id="insurance_info_file"> </div>
<div class="form-group col-md-12"> {{ Form::label('driver_language', __('Driver Language'),['class'=>'form-label']) }} {{ Form::text('driver_language', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-12"> {{ Form::label('driver_record', __('Driving Record'),['class'=>'form-label']) }} <textarea name="driver_record" class="form-control" id="" cols="30" rows="10">{{isset($driver->driver_record)?$driver->driver_record:''}}</textarea> </div> <div class="form-group col-md-12"> {{Form::label('insurance_info_file',__('Driving Record(file)'),array('class'=>'form-label')) }} <br> <input type="file" name="driver_record_file" class="form-control" id="driver_record_file"> </div> </div> </div> <div class="modal-footer"> <input type="button" value="{{__('Cancel')}}" class="btn btn-light" data-bs-dismiss="modal"> <input type="submit" value="{{__('Edit')}}" class="btn btn-primary"> </div> {{ Form::close() }}
|