@extends('layouts.app') @section('title', 'Incident Trend Analysis') @section('content')

Total Incidents

{{ $stats['total_incidents'] }}

Injury/Illness

{{ $stats['injury_illness'] }}

Property Damage

{{ $stats['property_damage'] }}

Near Miss

{{ $stats['near_miss'] }}

Monthly Trends (Last 12 Months)

Severity Distribution

Event Type Distribution

Status Distribution

@if($departmentStats->count() > 0)

Department Performance

@endif @if($topRootCauses->count() > 0)

Top Root Causes

@php $totalRootCauseCount = $topRootCauses->sum('count'); @endphp @foreach($topRootCauses as $index => $rootCause) @endforeach
Rank Root Cause Occurrences Percentage
#{{ $index + 1 }}
{{ Str::limit($rootCause->root_cause, 100) }}
{{ $rootCause->count }}
{{ number_format(($rootCause->count / $totalRootCauseCount) * 100, 1) }}%
@endif

Open Incidents

{{ $stats['open'] }}

Requiring attention

Under Investigation

{{ $stats['investigating'] }}

Active investigations

Closed Incidents

{{ $stats['closed'] }}

Resolved incidents

@endsection