@extends('adminlte::page') @section('title', 'Case Report: ' . $case->case_number) @section('content_header')

Case Report: {{ $case->case_number }}

@if($reportType == 'detailed') Detailed Report @else Summary Report @endif Back to Report Options Print Report
@stop @section('content')

Gambia Police Crime Case Management System

Police Logo

OFFICIAL CASE REPORT

{{ $case->station->name ?? 'Unknown Station' }}

Report Generated: {{ now()->format('F d, Y H:i') }}
Case #:
{{ $case->case_number }}
@if(in_array('case_details', $includeSections))

Case Details

{{ $case->getStatusLabelAttribute() }} {{ $case->getPriorityLabelAttribute() }} Priority
Case Title {{ $case->title }}
Crime Type {{ $crimeTypes[$case->crime_type] ?? $case->crime_type }}
Incident Date {{ $case->incident_date ? $case->incident_date->format('F d, Y') : 'N/A' }}
Incident Location {{ $case->incident_location ?? 'N/A' }}
Reported Date {{ $case->reported_date ? $case->reported_date->format('F d, Y') : 'N/A' }}
Police Station {{ $case->station->name ?? 'N/A' }}
Reporting Officer {{ $case->reportingOfficer->name ?? 'N/A' }}
Lead Investigator {{ $case->leadInvestigator->name ?? 'N/A' }}
Case Status {{ $case->getStatusLabelAttribute() }}
Priority {{ $case->getPriorityLabelAttribute() }}
Case Description

{!! nl2br(e($case->description)) !!}

@endif @if(in_array('victims', $includeSections) && $case->victims->count() > 0)

Victims ({{ $case->victims->count() }})

@if($reportType == 'detailed') @endif @foreach($case->victims as $index => $victim) @if($reportType == 'detailed') @endif @endforeach
# Name Type Contact Injury StatusAddress
{{ $index + 1 }} @if($victim->victim_type == 'individual') {{ $victim->first_name }} {{ $victim->last_name }} @else {{ $victim->organization_name }} @endif {{ ucfirst($victim->victim_type) }} {{ $victim->contact_phone ?? 'N/A' }} @if($victim->injury_status) {{ ucfirst($victim->injury_status) }} @else N/A @endif {{ $victim->address ?? 'N/A' }}
@endif @if(in_array('suspects', $includeSections) && $case->suspects->count() > 0)

Suspects ({{ $case->suspects->count() }})

@if($reportType == 'detailed') @endif @foreach($case->suspects as $index => $suspect) @if($reportType == 'detailed') @endif @endforeach
# Name StatusContact Address Description
{{ $index + 1 }} {{ $suspect->first_name }} {{ $suspect->last_name }} {{ ucfirst($suspect->status ?? 'Unknown') }}{{ $suspect->contact_phone ?? 'N/A' }} {{ $suspect->address ?? 'N/A' }} {{ Str::limit($suspect->description, 100) }}
@endif @if(in_array('statements', $includeSections) && $case->statements->count() > 0)

Statements ({{ $case->statements->count() }})

@if($reportType == 'detailed') @endif @foreach($case->statements as $index => $statement) @if($reportType == 'detailed') @endif @endforeach
# Given By Type Date Recorded Verification StatusStatement Content
{{ $index + 1 }} {{ $statement->given_by_name }} {{ ucfirst($statement->statement_type) }} {{ $statement->recorded_date ? $statement->recorded_date->format('Y-m-d') : 'N/A' }} @if($statement->is_verified) Verified @else Unverified @endif
{!! nl2br(e($statement->statement_content)) !!}
@endif @if(in_array('evidence', $includeSections) && $case->evidence->count() > 0)

Evidence ({{ $case->evidence->count() }})

@if($reportType == 'detailed') @endif @foreach($case->evidence as $index => $evidence) @if($reportType == 'detailed') @endif @endforeach
# Tag Number Type Status Collection DateDescription Current Custodian
{{ $index + 1 }} {{ $evidence->tag_number }} {{ ucfirst($evidence->evidence_type) }} {{ ucfirst(str_replace('_', ' ', $evidence->status)) }} {{ $evidence->collection_datetime ? $evidence->collection_datetime->format('Y-m-d') : 'N/A' }}{{ Str::limit($evidence->description, 100) }} {{ $evidence->currentCustodian->name ?? 'N/A' }}
@endif @if(in_array('updates', $includeSections) && $case->updates->count() > 0)

Case Updates ({{ $case->updates->count() }})

@foreach($case->updates as $index => $update) @endforeach
# Date Type Officer Description
{{ $index + 1 }} {{ $update->update_date ? $update->update_date->format('Y-m-d') : $update->created_at->format('Y-m-d') }} {{ ucfirst($update->update_type) }} {{ $update->officer->name ?? 'N/A' }} {{ $update->description }}
@endif

Report Generated By: {{ Auth::user()->name }}

Date & Time: {{ now()->format('F d, Y H:i') }}

Case Status: {{ $case->getStatusLabelAttribute() }}

Report ID: {{ md5($case->id . now()) }}


This is an official document of the Gambia Police Crime Case Management System.

CONFIDENTIAL - For official use only.

@stop @section('css') @stop @section('js') @stop