@extends('adminlte::page') @section('title', 'Case '.$children->case_id) @section('content_header')

Case {{ $children->case_id ?: $children->file_number }}

Back
@stop @section('content') @if(session('success'))
{{ session('success') }}
@endif @if($children->rejection_comment)
Latest supervisor comment: {{ $children->rejection_comment }} @if($children->created_by===auth()->id() && $children->workflow_status==='rejected')Correct & resubmit@endif
@endif

Case details

@foreach(['child_full_name'=>'Child name','sex'=>'Sex','birthdate'=>'Birth date','birth_place'=>'Birth place','region'=>'Region','family_status'=>'Family status','father_full_name'=>'Father','mother_full_name'=>'Mother','caregiver_company_name'=>'Caregiver company','agency_name'=>'Agency','caregiver_name'=>'Caregiver','country'=>'Country','city'=>'City','phone_no'=>'Phone','email'=>'Email','street_address'=>'Address','remark'=>'Remark'] as $field=>$label)
{{ $label }}{!! nl2br(e($field === 'country' ? $children->country_name : $children->{$field})) ?: '—' !!}
@endforeach

Workflow

Status: {{ $children->display_status }}

Recorded by: {{ $children->creator?->name ?? '—' }}

Reviewed by: {{ $children->reviewer?->name ?? '—' }}

File path:
{{ $children->case_file }}

@if($children->case_file) Open case PDF@endif

History

@foreach($children->statusHistories as $history)
{{ ucfirst($history->to_status) }}
{{ optional($history->created_at)->format('Y-m-d H:i') }} — {{ $history->user?->name ?? 'System' }}@if($history->comment)
{{ $history->comment }}
@endif
@endforeach
@stop