@extends('layouts.app') @section('title', 'Element 8: Incident Reporting & Analysis') @section('content')
Report incidents and near-misses, conduct root cause analysis, track corrective actions with trend analysis
{{ $incidents->where('incident_type', 'incident')->count() }}
Total incidents reported
{{ $incidents->where('incident_type', 'near_miss')->count() }}
Near-miss reports
{{ $rootCauseRate }}%
Root cause identified
{{ $actionCompletionRate }}%
Actions completed
High Severity Incidents
{{ $highSeverityIncidents }}
Top Recurring Categories:
@foreach($categoryFrequency as $category => $count)| Incident # | Type | Category | Description | Severity | Date & Time | Reported By | Status |
|---|---|---|---|---|---|---|---|
| {{ $incident->incident_number }} | {{ $incident->incident_type === 'incident' ? 'Incident' : 'Near Miss' }} | {{ $incident->incident_category }} | {{ Str::limit($incident->incident_description, 40) }} | {{ ucfirst($incident->severity) }} | {{ $incident->incident_datetime ? $incident->incident_datetime->format('d M Y H:i') : 'N/A' }} | {{ $incident->reported_by }} | {{ str_replace('_', ' ', ucfirst($incident->status)) }} |
| No incidents or near-misses reported | |||||||
| Incident # | Investigation Date | Investigator | Root Cause | Analysis Method | Contributing Factors | Status |
|---|---|---|---|---|---|---|
| {{ $incident->incident_number }} | {{ $incident->investigation->investigation_date ? $incident->investigation->investigation_date->format('d M Y') : 'N/A' }} | {{ $incident->investigation->lead_investigator }} | {{ Str::limit($incident->investigation->root_cause ?? 'Not identified', 40) }} | {{ $incident->investigation->analysis_method ?? 'N/A' }} | {{ Str::limit($incident->investigation->contributing_factors ?? 'None', 30) }} |
@if($incident->investigation->root_cause_identified)
@endif
{{ $incident->investigation->root_cause_identified ? 'Identified' : 'In Progress' }}
|
| No investigations found | ||||||
| Action # | Incident # | Action Description | Action Type | Responsible Person | Target Date | Status | Effectiveness |
|---|---|---|---|---|---|---|---|
| {{ $action->action_number }} | {{ $action->incident->incident_number }} | {{ Str::limit($action->action_description, 40) }} | {{ str_replace('_', ' ', ucfirst($action->action_type)) }} | {{ $action->responsible_person }} | {{ $action->target_completion_date ? $action->target_completion_date->format('d M Y') : 'N/A' }} | {{ ucfirst($action->status) }} | @if($action->effectiveness_verified) @else Not verified @endif |
| No corrective actions tracked | |||||||