@extends('adminlte::page') @section('title', 'Evidence Details') @section('content_header')

Evidence Details

Edit Back to List
@stop @section('content') @if(session('success'))
Success!
{{ session('success') }}
@endif @if(session('error'))
Error!
{{ session('error') }}
@endif

Evidence #{{ $evidence->tag_number }}

{{ $evidence->status_label }}
Tag Number
{{ $evidence->tag_number }}
Type
{{ $evidence->evidence_type_label }}
Status
{{ $evidence->status_label }}
Condition
{{ $evidence->condition ?? 'Not specified' }}
Location
{{ $evidence->location ?? 'Not specified' }}
Storage Location
{{ $evidence->storage_location ?? 'Not specified' }}
Collection Date
{{ $evidence->collection_date ? $evidence->collection_date->format('M d, Y H:i') : 'Not specified' }}
Collection Location
{{ $evidence->collection_location ?? 'Not specified' }}
Collected By
{{ $evidence->collector->name ?? 'Not specified' }}
Current Custodian
{{ $evidence->currentCustodian->name ?? 'Not specified' }}
Associated Case
@if($evidence->case) {{ $evidence->case->case_number }} @else Not associated with any case @endif
Description

{{ $evidence->description }}

@if($evidence->collection_notes)
Collection Notes

{{ $evidence->collection_notes }}

@endif @if($evidence->analysis_date || $evidence->analysis_results)
Analysis Information
Analysis Date
{{ $evidence->analysis_date ? $evidence->analysis_date->format('M d, Y H:i') : 'Not specified' }}
Analyzed By
{{ $evidence->analyzedByOfficer->name ?? 'Not specified' }}
Analysis Results
{{ $evidence->analysis_results ?? 'Not specified' }}
@endif
Record Information
Created By
{{ $evidence->createdByUser->name ?? 'Unknown' }} on {{ $evidence->created_at->format('M d, Y H:i') }}
Last Updated By
{{ $evidence->updatedByUser->name ?? 'Unknown' }} on {{ $evidence->updated_at->format('M d, Y H:i') }}

Chain of Custody

@if(is_array($evidence->chain_of_custody) && count($evidence->chain_of_custody) > 0) @foreach($evidence->chain_of_custody as $index => $entry)
{{ \Carbon\Carbon::parse($entry['date'])->format('M d, Y') }}
{{ \Carbon\Carbon::parse($entry['date'])->format('H:i') }}

{{ App\Models\User::find($entry['to_officer_id'])->name ?? 'Unknown Officer' }} received from {{ App\Models\User::find($entry['from_officer_id'])->name ?? 'Unknown Officer' }}

Reason: {{ $entry['reason'] ?? 'Not specified' }}
@if(isset($entry['notes']) && $entry['notes']) Notes: {{ $entry['notes'] }} @endif
@endforeach @else
No Records

No custody transfers recorded

@endif

Photos

@if(is_array($evidence->photos) && count($evidence->photos) > 0)
@foreach($evidence->photos as $index => $photo) @if(is_array($photo) && isset($photo['path']))
Evidence Photo
Photo {{ $index + 1 }}
{{ $photo['name'] ?? 'Evidence Photo' }}
@csrf @method('DELETE')
@endforeach
@else

No photos attached to this evidence.

@endif

Documents

@if(is_array($evidence->documents) && count($evidence->documents) > 0)
    @foreach($evidence->documents as $index => $document) @if(is_array($document) && isset($document['path']))
  • {{ $document['name'] ?? 'Evidence Document' }}
    @if(isset($document['uploaded_at'])) Uploaded: {{ \Carbon\Carbon::parse($document['uploaded_at'])->format('M d, Y H:i') }} @endif
    @csrf @method('DELETE')
  • @endif @endforeach
@else

No documents attached to this evidence.

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