@extends('layouts.app') @section('title', 'Fleet Management') @section('subtitle', 'Manage vehicles and track maintenance') @section('content')
Total Vehicles
{{ $stats['total_vehicles'] }}
Active
{{ $stats['active_vehicles'] }}
Maintenance
{{ $stats['maintenance_vehicles'] }}
Need Service
{{ $stats['vehicles_needing_service'] }}
Inactive
{{ $stats['inactive_vehicles'] }}
| Vehicle | Type | Status | Mileage | Department | Service | Actions |
|---|---|---|---|---|---|---|
|
{{ $vehicle->make }} {{ $vehicle->model }}
{{ $vehicle->registration_number }}
|
{{ $vehicle->vehicle_type }} | {{ ucfirst($vehicle->status) }} |
{{ number_format($vehicle->current_mileage) }} km
@if($vehicle->current_hours)
{{ $vehicle->current_hours }} hrs
@endif
|
{{ $vehicle->department?->name ?? 'Unassigned' }} | @if($vehicle->needsService()) Due @else OK @endif | |
|
No vehicles found Try adjusting your filters or add new vehicles. |
||||||