@extends('layouts.dashboard') @section('dashboard-content')

Document – {{ $document->document_number }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Title

{{ $document->title }}

Document type

{{ str_replace('_', ' ', $document->document_type) }}

Pseudo document number

{{ $document->pseudo_document_number ?: '—' }}

@if($document->description)
Description

{{ $document->description }}

@endif
Uploaded by

{{ $document->uploaded_by ?: '—' }}

Uploaded date

{{ $document->uploaded_date?->format('d M Y H:i') ?: '—' }}

Indexed by

{{ $document->indexed_by ?: '—' }}

Indexed at

{{ $document->indexed_at?->format('d M Y H:i') ?: '—' }}

Captured by

{{ $document->captured_by ?: '—' }}

Captured at

{{ $document->captured_at?->format('d M Y H:i') ?: '—' }}

@if($document->boundary)
Related boundary

{{ $document->boundary->boundary_number }} – {{ $document->boundary->name }}

@endif @if($document->dispute)
Related dispute

{{ $document->dispute->dispute_number }} – {{ Str::limit($document->dispute->title, 50) }}

@endif
@if($document->content_path) Download file @endif Edit document Back to Transaction log
@if($document->treatments && $document->treatments->count() > 0)

Treatment history

@foreach($document->treatments as $t) @endforeach
Action Treated by Role Date & time
{{ $t->action }} {{ $t->user_authority ?? '—' }} {{ $t->role_snapshot ?? '—' }} {{ $t->treated_at?->format('d M Y H:i') ?? '—' }}
@endif @endsection