@extends('admin.layouts.app') @section('extra-css') @endsection @section('content')

{{__('admin.drivers')}}

{{--
--}} {{-- --}} {{--
--}}
{{-- --}} {{-- --}} @foreach($drivers as $driver) status==2) style=" background: #f38e8e;" @endif> {{-- --}} {{-- --}} @endforeach
{{__('admin.id')}} {{__('admin.img')}} {{__('admin.name')}} {{__('admin.phone')}} {{__('admin.identity_type')}} {{__('admin.identity_card_number')}} {{__('admin.front_identity_card_image')}} {{__('admin.back_identity_card_image')}}{{__('admin.other_identity_type')}}{{__('admin.other_identity_image')}} {{__('admin.passport_image')}} {{__('admin.front_license_image')}} {{__('admin.back_license_image')}} {{__('admin.front_ownership_image')}} {{__('admin.back_ownership_image')}} {{__('admin.country')}} {{__('admin.truck')}} {{__('admin.address')}}{{__('admin.status')}}{{__('admin.created_at')}} {{__('admin.more')}}
{{$driver->id}} Header Avatar {{$driver->name??'-'}} {{$driver->mobile}} --}} {{--
--}} {{-- verified==3)checked="" @endif>--}} {{--
--}} {{--
{{__('admin.'.$driver->identity_type)}} {{$driver->identity_card_number??'-'}} Header Avatar Header Avatar {{$driver->other_identity_type??'-'}} @if($driver->other_identity_image) Header Avatar @else - @endif @if($driver->passport_image) Header Avatar @else - @endif @if($driver->front_license_image) Header Avatar @else - @endif @if($driver->back_license_image) Header Avatar @else - @endif @if($driver->front_ownership_image) Header Avatar @else - @endif @if($driver->back_ownership_image) Header Avatar @else - @endif {{$driver->country?->name_ar}} {{$driver->truck? $driver->truck->type?->type_ar : ''}} {{__('admin.location')}} {{Carbon\Carbon::parse($driver->created_at)->locale('ar')->translatedFormat('l dS F G:i - Y')}}
@can('edit_drivers') @endcan @can('access_drivers') @endcan @can('access_drivers') @endcan @can('edit_drivers') status==1) class="text-success" @else class="text-danger" @endif> @endcan @can('delete_drivers') @endcan
{{$drivers->withQueryString()->links('admin.pagination.bootstrap-4')}}
@endsection @section('extra-js') @endsection @section('modal') @component('admin.layouts.includes.modal') @slot('modalID') deleteModal @endslot @slot('modalTitle') {{__('admin.delete-data')}} @endslot @slot('modalMethodPutOrDelete') @method('delete') @endslot @slot('modalContent')
{{__('admin.delete-message-confirm')}}
@endslot @endcomponent @endsection