@extends('adminlte::page') @section('content_header')

Tracing Request {{ $tracingRequest->reference_code }}

@stop @section('content') @if(session('success'))
{{ session('success') }}
@endif
Submitted by {{ ucfirst(str_replace('_', ' ', $tracingRequest->status)) }}

Name today: {{ $tracingRequest->full_name }}

Submitter type: {{ ucfirst(str_replace('_', ' ', $tracingRequest->submitter_type)) }}

Date of birth: {{ optional($tracingRequest->date_of_birth)->format('Y-m-d') ?: '—' }}

Current country: {{ $tracingRequest->current_country ?: '—' }}

Email: {{ $tracingRequest->contact_email ?: '—' }}

Phone: {{ $tracingRequest->contact_phone ?: '—' }}

Consented to contact: {{ $tracingRequest->consent_to_contact ? 'Yes' : 'No' }}

What they know about the case

Name at adoption: {{ $tracingRequest->name_at_adoption ?: '—' }}

File number: {{ $tracingRequest->known_file_number ?: '—' }}

Adoption year: {{ $tracingRequest->known_adoption_year ?: '—' }}

Birth place: {{ $tracingRequest->birth_place ?: '—' }}

Mother's name: {{ $tracingRequest->mother_full_name ?: '—' }}

Father's name: {{ $tracingRequest->father_full_name ?: '—' }}

Additional info:
{{ $tracingRequest->additional_info ?: '—' }}

@if($tracingRequest->matchedChild)

Matched case file: {{ $tracingRequest->matchedChild->child_full_name }} ({{ $tracingRequest->matchedChild->file_number }})

@endif
@if($suggestedMatches->count())
Suggested matches in the system
@endif
@can('manage tracing requests')
Update status
@csrf
Add a log entry
@csrf

Logged by: {{ auth()->user()->name }}, dated today.

@endcan
Case history
@forelse($tracingRequest->logs as $log) @empty @endforelse
Date Action Notes Handled by
{{ optional($log->log_date)->format('Y-m-d') }} {{ $log->action }} {{ $log->notes ?: '—' }} {{ $log->handler->name ?? '—' }}
No log entries yet.
@stop