{{-- Approval tabs --}}
@foreach (['' => __('All')] + $approvalStatuses as $value => $label) @php($active = (string) request('approval') === (string) $value) $active, 'border-transparent text-gray-500 hover:text-gray-700 dark:hover:text-gray-300' => ! $active])> {{ __($label) }} {{ $value === '' ? $counts->sum() : ($counts[$value] ?? 0) }} @endforeach
{{ __('Filter') }}
@if ($drivers->isEmpty()) @else
@foreach ($drivers as $driver) @endforeach
{{ __('Driver') }}{{ __('City') }}{{ __('Vehicle') }}{{ __('Trips') }}{{ __('Rating') }}{{ __('Acceptance') }}{{ __('Approval') }}{{ __('Account') }}
@if ($driver->is_online)@endif {{ $driver->user->name ?? __('Unnamed driver') }} {{ $driver->user->full_phone }} {{ $driver->city?->name ?? '—' }} @if ($driver->currentVehicle) {{ $driver->currentVehicle->display_name }} {{ $driver->currentVehicle->plate_number }} · {{ $driver->currentVehicle->vehicleType?->name }} @else — @endif {{ number_format($driver->total_trips) }} {{ number_format($driver->user->rating, 1) }} {{ $driver->acceptance_rate }}% {{ $driver->approval_status->value === 'under_review' ? __('Review') : __('View') }}
{{ $drivers->links() }}
@endif