@include('partials.styles') @include('partials.nav')

Recent Incidents

@can('incidents.create') @endcan
@forelse ($incidents as $incident) @empty @endforelse
Date Status Severity Type Site
{{ $incident->occurred_on }} {{ $incident->status }} {{ $incident->severity ?? '—' }} {{ ! empty($incident->incident_types) ? implode(', ', $incident->incident_types) : '—' }} {{ $incident->site?->name ?? '—' }} @can('incidents.view') View @endcan @can('incidents.update') Edit @endcan @can('incidents.delete')
@csrf @method('delete')
@endcan
No incidents yet.
{{ $incidents->links('partials.pagination') }}
@can('incidents.create')
Create Incident
Report a new incident.
@csrf @php $incidentTypeOptions = ['Injury', 'Spill', 'Downtime', 'Damages']; @endphp
@foreach ($incidentTypeOptions as $type) @endforeach
@include('partials.tag-input', ['tagSuggestions' => $tagSuggestions ?? [], 'tagInitial' => []])
@endcan