@extends('adminlte::page') @section('title',$searchRequest->request_number) @section('content_header')

{{ $searchRequest->request_number }}

Back
@stop @section('content') @if(session('success'))
{{ session('success') }}
@endif

Request details

@foreach(['requester_name'=>'Requester','requester_type'=>'Requester type','requester_email'=>'Email','requester_phone'=>'Phone','child_name'=>'Child name','case_id'=>'Case ID','birth_date'=>'Birth date','mother_name'=>'Mother','father_name'=>'Father'] as $field=>$label)
{{ $label }}{{ $searchRequest->{$field} ?: '—' }}
@endforeach
Information requested

{{ $searchRequest->request_description }}

Search result

Summary: {{ $searchRequest->result_summary ?: 'Not entered.' }}

Staff notes: {{ $searchRequest->staff_notes ?: 'Not entered.' }}

@if($searchRequest->child)Open related case@endif

Workflow

Status: {{ $searchRequest->display_status }}

Assigned: {{ $searchRequest->assignee?->name ?? 'Unassigned' }}

@if(auth()->user()->can('manage search requests'))
@csrf
@csrf
@endcan

History

@foreach($searchRequest->histories as $history)
{{ ucfirst(str_replace('_',' ',$history->to_status)) }}
{{ optional($history->created_at)->format('Y-m-d H:i') }} — {{ $history->user?->name ?? 'Public/API' }}@if($history->comment)
{{ $history->comment }}
@endif
@endforeach
@stop