@extends('adminlte::page') @section('title', 'View Case Update') @section('content_header')

Case Update Details

Back to Updates Edit
@stop @section('content') @if (session('success')) @endif

Update Information

@switch($update->update_type) @case('general') General Update @break @case('statement') Statement @break @case('evidence') Evidence @break @case('suspect') Suspect @break @case('victim') Victim @break @case('status') Status Change @break @case('court') Court Proceedings @break @case('investigation') Investigation @break @default {{ ucfirst($update->update_type) }} @endswitch

{{ $update->update_date->format('d M Y, h:i A') }}

{{ $update->officer->rank ?? '' }} {{ $update->officer->name }}


{{ $update->description }}

Attachment

@if($update->attachment_path)
@php $extension = pathinfo(storage_path('app/public/' . $update->attachment_path), PATHINFO_EXTENSION); $isImage = in_array(strtolower($extension), ['jpg', 'jpeg', 'png', 'gif']); $isPdf = strtolower($extension) === 'pdf'; @endphp @if($isImage)
Attachment
@elseif($isPdf)
@endif Download Attachment

File: {{ basename($update->attachment_path) }}
Type: {{ strtoupper($extension) }}

@else

No attachment for this update.

@endif

Related Information

{{ $update->created_at->format('d M Y, h:i A') }}

{{ $update->updated_at->format('d M Y, h:i A') }}

View Full Case
@stop @section('css') @stop @section('js') @stop