Viewing file: edit.blade.php (4.53 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
{{ Form::model($taxi, array('route' => array('taxi.update', $taxi->id), 'method' => 'PUT','enctype' => 'multipart/form-data')) }}
<div class="modal-body"> <div class="row"> <div class="form-group col-md-12">
{{ Form::label('brand_name', __('Brand Name'),['class'=>'form-label']) }} {{ Form::text('brand_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('model',__('Model'),array('class'=>'form-label')) }} {{ Form::text('model', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-12"> {{Form::label('year',__('Year'),array('class'=>'form-label')) }} {{ Form::text('year', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-12"> {{Form::label('color',__('Color'),array('class'=>'form-label')) }} {{ Form::text('color', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-12"> {{Form::label('no_of_seats',__('No Of Seats'),array('class'=>'form-label')) }} {{ Form::text('no_of_seats', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-12"> {{Form::label('vin',__('VIN'),array('class'=>'form-label')) }} {{ Form::text('vin', null, array('class' => 'form-control','required'=>'required')) }} </div> <div class="form-group col-md-6"> {{Form::label('vehicle_image',__('Vehicle Image'),array('class'=>'form-label')) }} <br> {{Form::file('vehicle_image',null,array('class'=>'form-control'))}} </div> <div class="form-group col-md-6"> {{Form::label('liecnse',__('Vehicle Liecnse'),array('class'=>'form-label')) }} <br> {{Form::file('liecnse',null,array('class'=>'form-control'))}} </div> <div class="form-group col-md-6"> {{Form::label('TE_info',__('Tag Expiration Info'),array('class'=>'form-label')) }} <br> {{Form::file('TE_info',null,array('class'=>'form-control'))}} </div> <div class="form-group col-md-6"> {{Form::label('insurance_info',__('Insurance Info'),array('class'=>'form-label')) }} <br> {{Form::file('insurance_info',null,array('class'=>'form-control'))}} </div>
<div class="form-group col-md-12"> {{ Form::label('choose_driver', __('Choose Driver'),['class'=>'form-label']) }} <select class="form-control select" required="required" id="driver_id" name="driver_id" @if($taxi->vehicle_type == 'Private' && $taxi->driver_id) disabled @endif > <option selected>{{__('Select Driver')}}</option> @if (isset($drivers) && $drivers) @foreach($drivers as $driver) <option {{isset($taxi) && $taxi->driver_id==$driver->id?'selected':''}} value="{{ $driver->id }}">{{ $driver->name }}</option> @endforeach @endif
</select> </div>
<div class="form-group col-md-12"> {{ Form::label('vehicle_type', __('Vehicle Type'), ['class' => 'form-label']) }} <br> <div class="form-check form-check-inline"> {{ Form::radio('vehicle_type', 'Private', null, ['class' => 'form-check-input', 'id' => 'flexRadioDefault1']) }} {{ Form::label('flexRadioDefault1', __('Private'), ['class' => 'form-check-label']) }} </div> <div class="form-check form-check-inline"> {{ Form::radio('vehicle_type', 'Non Private', null, ['class' => 'form-check-input', 'id' => 'flexRadioDefault2']) }} {{ Form::label('flexRadioDefault2', __('Non Private'), ['class' => 'form-check-label']) }} </div> </div>
</div> </div> <div class="modal-footer"> <input type="button" value="{{__('Cancel')}}" class="btn btn-light" data-bs-dismiss="modal"> <input type="submit" value="{{__('Update')}}" class="btn btn-primary"> </div> {{ Form::close() }}
|