@extends('layouts.app') @section('title', 'Housekeeping & Workplace Organization Dashboard') @section('content')

Housekeeping & Workplace Organization Dashboard

Ensures cleanliness, order, and safety in the workplace

Total Inspections

{{ $stats['total_inspections'] }}

Completed

{{ $stats['completed_inspections'] }}

Requiring Follow-up

{{ $stats['requiring_follow_up'] }}

5S Audits

{{ $stats['total_5s_audits'] }}

Recent Inspections

@forelse($recentInspections as $inspection)

{{ $inspection->location }}

{{ $inspection->reference_number }}

{{ ucfirst(str_replace('_', ' ', $inspection->status)) }}
{{ $inspection->inspectedBy->name ?? 'N/A' }} {{ $inspection->inspection_date->format('M d, Y') }}
@empty

No inspections

@endforelse

Recent 5S Audits

@forelse($recentAudits as $audit)

{{ $audit->area }}

{{ $audit->reference_number }}

{{ ucfirst(str_replace('_', ' ', $audit->overall_rating)) }}
Score: {{ number_format($audit->total_score ?? 0, 1) }} {{ $audit->audit_date->format('M d, Y') }}
@empty

No 5S audits

@endforelse

Inspections

Housekeeping inspections

5S Audits

5S audit records

@endsection