@extends('admin.layout') @section('title', 'Vehicles') @section('page-title', 'Vehicles Management') @section('content')

All Vehicles ({{ $vehicles->total() }})

@forelse($vehicles as $vehicle) @empty @endforelse
Vehicle Owner License Plate Seats Color Status Actions
{{ $vehicle->make }} {{ $vehicle->model }}
{{ $vehicle->year }}
{{ substr($vehicle->driver->name ?? 'D', 0, 1) }}
{{ $vehicle->driver->name ?? 'N/A' }}
{{ $vehicle->driver->phone ?? '' }}
{{ $vehicle->license_plate }} {{ $vehicle->seats }}
{{ $vehicle->color }}
@if($vehicle->is_verified) Verified @else Pending @endif @if(!$vehicle->is_verified)
@csrf
@else ✓ Verified @endif
No vehicles found
{{ $vehicles->links() }}
@endsection