@extends('layouts.app') @section("breadcrumb")
  • @lang('fleet.customers')
  • @lang('fleet.edit_customer')
  • @endsection @section('content')

    @lang('fleet.edit_customer')

    @if (count($errors) > 0)
      @foreach ($errors->all() as $error)
    • {{ $error }}
    • @endforeach
    @endif {!! Form::open(['route' => ['customers.update',$data->id],'method'=>'PATCH']) !!} {!! Form::hidden('id',$data->id) !!}
    {!! Form::label('first_name', __('fleet.firstname'), ['class' => 'form-label']) !!} {!! Form::text('first_name', $data->getMeta('first_name'),['class' => 'form-control','required']) !!}
    {!! Form::label('last_name', __('fleet.lastname'), ['class' => 'form-label']) !!} {!! Form::text('last_name', $data->getMeta('last_name'),['class' => 'form-control','required']) !!}
    {!! Form::label('phone',__('fleet.phone'), ['class' => 'form-label']) !!}
    {!! Form::text('phone', $data->getMeta('mobno'),['class' => 'form-control','required']) !!}
    {!! Form::label('email', __('fleet.email'), ['class' => 'form-label']) !!}
    {!! Form::email('email', $data->email,['class' => 'form-control','required']) !!}
    {!! Form::label('address', __('fleet.address'), ['class' => 'form-label']) !!}
    {!! Form::textarea('address', $data->getMeta('address'),['class' => 'form-control','size'=>'30x2']) !!}
    {!! Form::submit(__('fleet.update'), ['class' => 'btn btn-warning']) !!}
    {!! Form::close() !!}
    @endsection