@extends('layouts.app') @section('title', 'Period Incident Report') @section('content')

Report Period

{{ ucfirst($period) }} Report: {{ $startDate->format('F j, Y') }} to {{ $endDate->format('F j, Y') }}

Total Incidents

{{ $stats['total_incidents'] }}

Open

{{ $stats['open'] }}

Investigating

{{ $stats['investigating'] }}

Closed

{{ $stats['closed'] }}

Severity Breakdown

Critical {{ $stats['critical'] }}
High {{ $stats['high'] }}
Medium {{ $stats['medium'] }}
Low {{ $stats['low'] }}

Event Type Breakdown

Injury/Illness {{ $stats['injury_illness'] }}
Property Damage {{ $stats['property_damage'] }}
Near Miss {{ $stats['near_miss'] }}

Incidents List

@forelse($incidents as $incident) @empty @endforelse
Reference Title Date Status Severity Event Type Department
{{ $incident->reference_number }}
{{ $incident->title ?? $incident->incident_type }}
{{ $incident->incident_date->format('Y-m-d') }}
{{ ucfirst($incident->status) }} {{ ucfirst($incident->severity) }} {{ ucfirst(str_replace('_', ' ', $incident->event_type ?? 'N/A')) }}
{{ $incident->department?->name ?? 'N/A' }}
No incidents found for the selected period.
@endsection