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

    @lang('fleet.change_details') : {{ $user_data->name}}

    {{$error}} {!! Form::open(array("url"=>"change-details/".$user_data->id,'files'=>true))!!}
    {!! Form::label('name',__('fleet.name'),['class'=>"form-label"]) !!} {!! Form::text('name',$user_data->name,['class'=>"form-control",'required']) !!}
    {!! Form::label('email',__('fleet.email'),['class'=>"form-label"]) !!}
    {!! Form::email('email',$user_data->email,['class'=>"form-control",'required']) !!}
    {!! Form::label('image', __('fleet.picture'), ['class' => 'form-label']) !!} @if($user_data->user_type == "D" && $user_data->getMeta('driver_image') != null) View @elseif($user_data->user_type != "D" && $user_data->getMeta('profile_image') != null) View @elseif($user_data->user_type == "C" && $user_data->getMeta('profile_pic') != null) View @endif {!! Form::file('image',null,['class' => 'form-control']) !!}
    {!! Form::label('language',__('fleet.language'),['class'=>"form-label"]) !!}
    {!! Form::close()!!}

    @lang('fleet.change_password') : {{ Auth::user()->name}}

    @if (count($errors) > 0)
      @foreach ($errors->all() as $error)
    • {{ $error }}
    • @endforeach
    @endif {!! Form::open(array("url"=>"changepassword/".Auth::user()->id))!!}
    {!! Form::label('password',__('fleet.password'),['class'=>"form-label"]) !!}
    {!! Form::close()!!}
    @endsection