@extends('dashboard.layout.layout') @section('content')
@if (in_array($update_request->update_type ,['car_data','personal_car_data']))
{{ trans('dashboard.update_request.update_types.car_data') }}
{{ $update_request->created_at->format("Y-m-d") }}
{{ trans('dashboard.brand.brand') }} {{ optional(@$update_request->brand)->name }}
{!! trans('dashboard.car_model.car_model') !!} {{ optional(@$update_request->carModel)->name }}
{!! trans('dashboard.car_type.car_type') !!} {{ optional(@$update_request->carType)->name }}
{!! trans('dashboard.car.license_serial_number') !!} : {{ $update_request->license_serial_number ?? trans('dashboard.general.no_data') }}
{!! trans('dashboard.car.plate_type') !!} : @if (@$update_request->plate_type) {{ trans('dashboard.car.plate_types.'.$update_request->plate_type) }} @else {!! trans('dashboard.general.no_data') !!} @endif
@if ($update_request->phone) @endif @if ($update_request->identity_number) @endif @if ($update_request->driver_type) @endif
{!! trans('dashboard.car.plate_number') !!} : {{ $update_request->plate_number ?? trans('dashboard.general.no_data') }}
{!! trans('dashboard.car.manufacture_year') !!} : {{ $update_request->manufacture_year }}
{!! trans('dashboard.general.phone') !!} {{ $update_request->phone }}
{!! trans('dashboard.user.identity_number') !!} {{ $update_request->identity_number }}
{!! trans('dashboard.driver.driver_type') !!} {{ $update_request->driver_type }}
{!! Form::model($update_request,['route' =>['dashboard.update_request.update',$update_request->id],'method' => 'PUT']) !!} {!! Form::hidden('update_status', 'accepted') !!} {!! Form::close() !!}
@elseif (in_array($update_request->update_type ,['personal_data','personal_car_data']))
{{ trans('dashboard.update_request.update_types.personal_data') }}
{{ $update_request->created_at->format("Y-m-d") }}
@if ($update_request->user_type == 'driver') @endif
{{ trans('dashboard.general.phone') }} {{ $update_request->phone }}
{{ trans('dashboard.user.identity_number') }} {{ $update_request->identity_number }}
{{ trans('dashboard.driver.date_of_birth') }} {{ optional($update_request->date_of_birth)->format("Y-m-d") }}
{{ trans('dashboard.driver.date_of_birth_hijri') }} {{ optional($update_request->date_of_birth_hijri)->format("Y-m-d") }}
{{ trans('dashboard.driver.driver_type') }} {{ $update_request->driver_type }}
{{ trans('dashboard.driver.date_of_birth_hijri') }} {{ optional($update_request->date_of_birth_hijri)->format("Y-m-d") }}
{!! Form::model($update_request,['route' =>['dashboard.update_request.update',$update_request->id],'method' => 'PUT']) !!} {!! Form::hidden('update_status', 'accepted') !!} {!! Form::close() !!}
@endif
{!! trans('dashboard.'.$update_request->user_type.'.'.$update_request->user_type) !!}
{{ @$update_request->user->fullname }}
{!! trans('dashboard.user.fullname') !!} {{ @$update_request->user->fullname }}
{!! trans('dashboard.general.email') !!} {{ @$update_request->user->email }}
{!! trans('dashboard.general.phone') !!} {{ @$update_request->user->phone }}
@if (in_array($update_request->update_type ,['car_data','personal_car_data']))
{!! trans('dashboard.general.images') !!}
@if ($update_request->car_front_image) @endif @if ($update_request->car_back_image) @endif @if ($update_request->car_form_image) @endif @if ($update_request->car_licence_image) @endif @if ($update_request->car_insurance_image) @endif
@endif @include('dashboard.update_request.refuse_modal') @endsection @section('vendor_styles') @endsection @section('page_styles') @endsection @section('vendor_scripts') @endsection @section('page_scripts') @endsection