Monthly Compliance Tracking
{{-- KPIs --}}
{{-- Overdue vehicles list --}}
{{-- Due this week list --}}
{{-- All vehicles: last inspection, next due, indicator --}}
Completion % This Month
{{ $completionPercent }}%
{{ $inspectedThisMonth }} of {{ $totalVehicles }} vehicles inspected this month
Overdue Vehicles
{{ count($overdueVehicles) }}
Due This Week
{{ count($dueThisWeekVehicles) }}
Overdue Vehicles List
| Vehicle # | VIN | Type | Last Inspection | Next Due Date | Status |
|---|---|---|---|---|---|
| {{ $row['vehicle']->unit_number }} | {{ $row['vehicle']->vin }} | {{ ucfirst($row['vehicle']->type ?? '') }} | {{ $row['last_inspection_date'] ? $row['last_inspection_date']->format('M d, Y') : '—' }} | {{ $row['next_due_date'] ? $row['next_due_date']->format('M d, Y') : 'Never' }} | Overdue |
| No overdue vehicles | |||||
Due This Week
| Vehicle # | VIN | Type | Last Inspection | Next Due Date | Status |
|---|---|---|---|---|---|
| {{ $row['vehicle']->unit_number }} | {{ $row['vehicle']->vin }} | {{ ucfirst($row['vehicle']->type ?? '') }} | {{ $row['last_inspection_date'] ? $row['last_inspection_date']->format('M d, Y') : '—' }} | {{ $row['next_due_date'] ? $row['next_due_date']->format('M d, Y') : '—' }} | Due soon |
| No vehicles due this week | |||||
All Vehicles – Last Inspection & Next Due Date
| Vehicle # | VIN | Type | Last Inspection Date | Next Due Date (+{{ $intervalDays }} days) | Due Indicator |
|---|---|---|---|---|---|
| {{ $row['vehicle']->unit_number }} | {{ $row['vehicle']->vin }} | {{ ucfirst($row['vehicle']->type ?? '') }} | {{ $row['last_inspection_date'] ? $row['last_inspection_date']->format('M d, Y') : '—' }} | {{ $row['next_due_date'] ? $row['next_due_date']->format('M d, Y') : '—' }} | @if($row['status'] === 'compliant') Compliant @elseif($row['status'] === 'due_soon') Due soon @else Overdue @endif |