Vehicle Overview — {{ $vehicle->unit_number }}
Vehicle #
{{ $vehicle->unit_number }}
{{ $vehicle->unit_number }}
VIN
{{ $vehicle->vin }}
{{ $vehicle->vin }}
Type
{{ ucfirst($vehicle->type) }}
{{ ucfirst($vehicle->type) }}
Status
{{ ucfirst($vehicle->status) }}
{{ ucfirst($vehicle->status) }}
Last Inspection Date (Overall)
{{ $overallLastDate ? $overallLastDate->format('Y-m-d') : '—' }}
{{ $overallLastDate ? $overallLastDate->format('Y-m-d') : '—' }}
Last Inspection (Truck)
{{ optional($statusByType['truck']['last_inspection'] ?? null)?->format('Y-m-d') ?? '—' }}
{{ optional($statusByType['truck']['last_inspection'] ?? null)?->format('Y-m-d') ?? '—' }}
Last Inspection (Trailer)
{{ optional($statusByType['trailer']['last_inspection'] ?? null)?->format('Y-m-d') ?? '—' }}
{{ optional($statusByType['trailer']['last_inspection'] ?? null)?->format('Y-m-d') ?? '—' }}
Next Due Date (Earliest)
{{ $overallNextDue ? $overallNextDue->format('Y-m-d') : '—' }}
{{ $overallStatus }}
{{ $overallNextDue ? $overallNextDue->format('Y-m-d') : '—' }}
{{ $overallStatus }}
Inspection Status by Type
| Type | Last Inspection | Next Due | Status |
|---|---|---|---|
| {{ ucfirst($t) }} | {{ optional($info['last_inspection'] ?? null)?->format('Y-m-d') ?? '—' }} | {{ optional($info['next_due'] ?? null)?->format('Y-m-d') ?? '—' }} | {{ $info['status'] ?? 'Never inspected' }} |
Maintenance Summary
Total Maintenance Spend (Lifetime)
${{ number_format($lifetimeMaintenanceTotal, 2) }}
${{ number_format($lifetimeMaintenanceTotal, 2) }}
Exports
Maintenance history exports:
Maintenance CSV Maintenance PDFInspection report (PDF):
All Inspections PDFInspection History (All Months)
| Date | Type | Mechanic | Status |
|---|---|---|---|
| {{ optional($inspection->inspection_date)->format('Y-m-d') ?? '—' }} | {{ ucfirst($inspection->inspection_type ?? '') }} | {{ $inspection->mechanic->name ?? '—' }} | {{ ucfirst($inspection->status ?? '') }} |
| No inspections recorded for this vehicle yet. | |||
Maintenance History
| Date | Type | Description | Total Cost |
|---|---|---|---|
| {{ optional($m->date_performed)->format('Y-m-d') ?? '—' }} | {{ $m->maintenance_type }} | {{ \Illuminate\Support\Str::limit($m->description ?? '', 80) }} | ${{ number_format($m->total_cost ?? 0, 2) }} |
| No maintenance records for this vehicle yet. | |||