@extends('layouts.dashboard') @section('content')

Fleet Management

Vehicles, documents, maintenance and salesman assignments.

Add Vehicle
@forelse($vehicles as $vehicle)@empty@endforelse
VehiclePlateSalesmanOdometerDocumentsStatus
{{ $vehicle->name }}
{{ trim($vehicle->make.' '.$vehicle->model.' '.$vehicle->year) ?: '—' }}
{{ $vehicle->plate_number }}{{ $vehicle->currentAssignment?->user?->name ?: 'Not assigned' }}{{ $vehicle->odometer_km ? number_format($vehicle->odometer_km).' km' : '—' }}Registration: {{ $vehicle->registration_expires_at?->format('Y-m-d') ?: '—' }}
Insurance: {{ $vehicle->insurance_expires_at?->format('Y-m-d') ?: '—' }}
{{ $vehicle->status }}View
No vehicles have been added.
{{ $vehicles->links() }}
@endsection