@extends('layouts.head_office_app') @section('title', 'Head office Settings') @section('sidebar') @php $statusCount = $cases ->filter(function ($record) { return isset($record->recorded_case) && $record->recorded_case !== null; }) ->groupBy(function ($record) { return $record->recorded_case->status ?? 'unknown'; // Ensure status exists }) ->map(function ($group) { return $group->count(); }); $incident_types = $cases->filter(function ($record) { return isset($record->recorded_case) && !empty($record->recorded_case->incident_type); }) ->groupBy(function ($record) { return $record->recorded_case->incident_type ?? 'Unknown'; }) ->map(function($group) { return $group->count(); }); @endphp @endsection @section('sub-header')
Details Timeline {{-- Intelligence --}} Intelligence Coming Soon Matches History Coming Soon
@endsection @section('content')
@include('layouts.error')
@include('head_office.contacts.contact_timeline_card')
Start
@if (!$first_case) @else @endif
@section('scripts') @endsection @endsection