@extends('dashboard.layouts.index') @section('page_title') @lang('global.edti_driver') @stop @section('breadcrumb') @stop @section('content') @if ($errors->any()) @foreach ($errors->all() as $error)
{{$error}}
@endforeach @endif @if ($errors->any()) @foreach ($errors->all() as $error)
× {{ $error }}
@endforeach @endif
id)}}" novalidate method="POST"> @csrf

@lang('global.avatar')

@component('dashboard.components.edit_image' , ["avatar" => $model->avatar] ) @endcomponent

@lang("global.dashboard_information")

@component('dashboard.components.edit_text' , [ "name" => "firstname", "type" => "text", "title" => __("global.firstname"), "col" => "col-md-10", "value" => $model->firstname ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "lastname", "type" => "text", "title" => __("global.lastname"), "col" => "col-md-10", "value" => $model->lastname ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "phone_number", "type" => "text", "title" => __("global.phone_number"), "col" => "col-md-10", "value" => $model->phone_number ]) @endcomponent @component('dashboard.components.edit_text' , [ "name" => "email", "type" => "email", "title" => __("global.email"), "col" => "col-md-10", "value" => $model->email ]) @endcomponent {{-- @component('dashboard.components.edit_text' , [ "name" => "password", "type" => "hidden", "title" => __("global.password"), "col" => "col-md-10", "value" => "password" ]) @endcomponent --}} @component('dashboard.components.edit_text' , [ "name" => "age", "type" => "text", "title" => __("global.age"), "col" => "col-md-10", "value" => $model->age ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "driverId", "type" => "text", "title" => __("global.driverId"), "col" => "col-md-10", "value" => $model->userinformt?$model->userinformt->driverId:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "name_car", "type" => "text", "title" => __("global.name_car"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->name_car:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "model_car", "type" => "text", "title" => __("global.model_car"), "col" => "col-md-10", "value" =>$model->usercar?$model->usercar->model_car:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "color_car", "type" => "text", "title" => __("global.color_car"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->color_car:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "vehiclePlate", "type" => "text", "title" => __("global.vehiclePlate"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->vehiclePlate:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "year_of_manufacture", "type" => "text", "title" => __("global.year_of_manufacture"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->year_of_manufacture:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "city", "type" => "text", "title" => __("global.city"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->city:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "cityar", "type" => "text", "title" => __("global.city_ar"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->cityar:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "latitude", "type" => "text", "title" => __("global.lat"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->latitude:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "longitude", "type" => "text", "title" => __("global.long"), "col" => "col-md-10", "value" =>$model->usercar?$model->usercar->longitude:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "license_plate", "type" => "file", "title" => __("global.license_plate"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->license_plate:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "car_insurance", "type" => "file", "title" => __("global.car_insurance"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->car_insurance:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "driving_license", "type" => "file", "title" => __("global.driving_license"), "col" => "col-md-10", "value" => $model->usercar?$model->usercar->driving_license:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "front_drivingl_icense", "type" => "file", "title" => __("global.front_drivingl_icense"), "col" => "col-md-10", "value" => $model->userinformt?$model->userinformt->front_drivingl_icense:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "driving_license_from_behind", "type" => "file", "title" => __("global.driving_license_from_behind"), "col" => "col-md-10", "value" => $model->userinformt?$model->userinformt->driving_license_from_behind:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "not_sentenced", "type" => "file", "title" => __("global.not_sentenced"), "col" => "col-md-10", "value" =>$model->userinformt?$model->userinformt->not_sentenced:null ]) @endcomponent @component('dashboard.components.edit_text_row' , [ "name" => "medical_examination", "type" => "file", "title" => __("global.medical_examination"), "col" => "col-md-10", "value" => $model->userinformt?$model->userinformt->medical_examination:null ]) @endcomponent
@php $car=App\Models\Car\Car::where('status',1)->get(); @endphp
@stop @push('js') @endpush