@extends('layouts.app') @section('title', 'Worker Dashboard') @section('content')

Dashboard

New Inspection
Total Inspections

{{ $stats['total_inspections'] }}

This Month

{{ $stats['inspections_this_month'] }}

Passed

{{ $stats['passed_inspections'] }}

Failed

{{ $stats['failed_inspections'] }}

Recent Inspections
View All
@if($recentInspections->isEmpty())

No inspections yet. Start your first inspection!

@else
@foreach($recentInspections as $inspection) @endforeach
Date Equipment Checklist Status
{{ $inspection->inspection_date->format('M d, H:i') }} {{ $inspection->equipment->name }} {{ $inspection->checklist->title }} {{ $inspection->getStatusLabel() }}
@endif
Assigned Checklists
@if($assignedChecklists->isEmpty())

No checklists assigned yet.

@else
@foreach($assignedChecklists as $checklist)
{{ $checklist->title }}
{{ $checklist->items_count }} items
@endforeach
@endif
@endsection