@include('admin.include.header') @include('admin.include.sidebar')

Monthly Compliance Tracking

Due soon = {{ $dueSoonDays }} days | Next due = +{{ $intervalDays }} days
{{-- KPIs --}}
Completion % This Month
{{ $completionPercent }}%
{{ $inspectedThisMonth }} of {{ $totalVehicles }} vehicles inspected this month
Overdue Vehicles
{{ count($overdueVehicles) }}
Due This Week
{{ count($dueThisWeekVehicles) }}
{{-- Overdue vehicles list --}}
Overdue Vehicles List
@forelse($overdueVehicles as $row) @empty @endforelse
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 list --}}
Due This Week
@forelse($dueThisWeekVehicles as $row) @empty @endforelse
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, indicator --}}
All Vehicles – Last Inspection & Next Due Date
@foreach($vehicleCompliance as $row) @endforeach
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
@include('admin.include.footer')