@extends('layouts.app') @section('content')
@lang('fleet.editProfile')
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::open(['route' => ['drivers.update',$data->id],'files'=>true,'method'=>'PATCH']) !!} {!! Form::hidden('id',$data->id) !!} {!! Form::hidden('user_id',Auth::user()->id) !!}
{!! Form::label('first_name', __('fleet.firstname'), ['class' => 'form-label']) !!} {!! Form::text('first_name', $data->get_detail->first_name,['class' => 'form-control','required']) !!}
{!! Form::label('last_name', __('fleet.lastname'), ['class' => 'form-label']) !!} {!! Form::text('last_name', $data->get_detail->last_name,['class' => 'form-control','required']) !!}
{!! Form::label('middle_name', __('fleet.middlename'), ['class' => 'form-label']) !!} {!! Form::text('middle_name', $data->get_detail->middle_name,['class' => 'form-control']) !!}
{!! Form::label('address', __('fleet.address'), ['class' => 'form-label']) !!} {!! Form::text('address', $data->get_detail->address,['class' => 'form-control','required']) !!}
{!! Form::label('driver_image', __('fleet.driverImage'), ['class' => 'form-label']) !!} View {!! Form::file('driver_image',null,['class' => 'form-control','required']) !!}
{!! Form::label('phone', __('fleet.phoneNumer'), ['class' => 'form-label']) !!} {!! Form::text('phone', $data->get_detail->phone,['class' => 'form-control','required']) !!}
{!! Form::label('license_number', __('fleet.licenseNumber'), ['class' => 'form-label']) !!} {!! Form::text('license_number', $data->get_detail->license_number,['class' => 'form-control','required']) !!}
{!! Form::label('issue_date', __('fleet.issueDate'), ['class' => 'form-label']) !!} {!! Form::date('issue_date', $data->get_detail->issue_date,['class' => 'form-control','required','disabled']) !!}
{!! Form::label('exp_date', __('fleet.expirationDate'), ['class' => 'form-label']) !!} {!! Form::text('exp_date', $data->get_detail->exp_date,['class' => 'form-control','required']) !!}
{!! Form::label('license_image', __('fleet.licenseImage'), ['class' => 'form-label']) !!} View {!! Form::file('license_image',null,['class' => 'form-control','required']) !!}
{!! Form::submit(__('fleet.editProfile'), ['class' => 'btn btn-warning']) !!}
{!! Form::close() !!}
@endsection