@if (count($errors) > 0)
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
{!! Form::open(['route' => ['vehicles.update',$data->id],'method'=>'PATCH']) !!}
{!! Form::hidden('user_id',Auth::user()->id) !!}
{!! Form::hidden('id',$data->id) !!}
{!! Form::label('make', __('fleet.make'), ['class' => 'form-label']) !!}
{!! Form::text('make', $data->make,['class' => 'form-control','required']) !!}
{!! Form::label('model', __('fleet.model'), ['class' => 'form-label']) !!}
{!! Form::text('model', $data->model,['class' => 'form-control','required']) !!}
{!! Form::label('type', __('fleet.type'), ['class' => 'form-label']) !!}
{!! Form::text('type', $data->type,['class' => 'form-control','required']) !!}
{!! Form::label('year', __('fleet.year'), ['class' => 'form-label']) !!}
{!! Form::number('year', $data->year,['class' => 'form-control','required']) !!}
{!! Form::label('int_mileage', __('fleet.intMileage'), ['class' => 'form-label']) !!}
{!! Form::text('int_mileage', $data->mileage,['class' => 'form-control','required']) !!}
{!! Form::label('engine_type', __('fleet.engine'), ['class' => 'form-label']) !!}
{!! Form::select('engine_type',["Petrol"=>"Petrol","Diesel"=>"Diesel"],$data->engine_type,['class' => 'form-control','required']) !!}
{!! Form::label('horse_power', __('fleet.horsePower'), ['class' => 'form-label']) !!}
{!! Form::text('horse_power', $data->horse_power,['class' => 'form-control','required']) !!}
{!! Form::label('color', __('fleet.color'), ['class' => 'form-label']) !!}
{!! Form::text('color', $data->color,['class' => 'form-control','required']) !!}
{!! Form::label('vin', __('fleet.vin'), ['class' => 'form-label']) !!}
{!! Form::text('vin', $data->vin,['class' => 'form-control','required']) !!}
{!! Form::label('license_plate', __('fleet.licensePlate'), ['class' => 'form-label']) !!}
{!! Form::text('license_plate', $data->license_plate,['class' => 'form-control','required']) !!}
{!! Form::submit(__('fleet.submit'), ['class' => 'btn btn-default']) !!}
{!! Form::label('in_service', __('fleet.service'), ['class' => 'form-label']) !!}
{!! Form::checkbox('in_service', '1', $data->in_service,['class'=>'form-check-input']) !!}
{!! Form::close() !!}