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

Dashboard

Total Users

{{ $stats['total_users'] }}

Pending Approval

{{ $stats['pending_users'] }}

Passed Inspections

{{ $stats['passed_inspections'] }}

Failed Inspections

{{ $stats['failed_inspections'] }}

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

No inspections yet.

@else
@foreach($recentInspections as $inspection) @endforeach
Date Worker Equipment Checklist Status
{{ $inspection->inspection_date->format('M d, H:i') }} {{ $inspection->user->full_name }} {{ $inspection->equipment->name }} {{ $inspection->checklist->title }} {{ $inspection->getStatusLabel() }}
@endif
Pending Users
Review
@if($pendingUsers->isEmpty())

No pending users.

@else
    @foreach($pendingUsers as $user)
  • {{ $user->full_name }}
    {{ $user->department->name }}
    Pending
  • @endforeach
@endif
Overdue Inspections
@if($overdueEquipment->isEmpty())

No overdue inspections.

@else
    @foreach($overdueEquipment as $item)
  • {{ $item['equipment']->name }}
    {{ $item['checklist']->title }}
    {{ $item['days_overdue'] }} days overdue
  • @endforeach
@endif
@endsection