@php $patient = $order->patient; $items = $order->items; $ready = $items->filter(fn ($item) => $item->result_value !== null || filled($item->result_text)); $waiting = $items->count() - $ready->count(); $verified = $items->filter(fn ($item) => $item->status === 'verified'); $meaning = [ 'normal' => 'Within the usual range.', 'high' => 'A little above the usual range.', 'low' => 'A little below the usual range.', 'abnormal' => 'Needs a closer look — mention it at your next visit.', 'positive' => 'The test found a sign of the condition it checks for.', 'negative' => 'The test did not find a sign of the condition it checks for.', 'critical_high' => 'Far outside the usual range. Your doctor has been told urgently.', 'critical_low' => 'Far outside the usual range. Your doctor has been told urgently.', ]; @endphp Your test results

A copy for the patient — plain language, no medical codes. Do not hand this out before results are verified.

Back to the request   
{{ hospital_name() }}
{{ setting('facility_address', '') }} @if (setting('facility_phone', '')) · Tel {{ setting('facility_phone') }} @endif
Your test results — in plain language
@if ($order->status === 'cancelled') @endif @if ($waiting > 0 && $order->status !== 'cancelled') @endif @if ($items->contains(fn ($item) => in_array($item->flag, ['critical_high', 'critical_low'], true))) @endif
{{ $patient?->full_name ?? '—' }}
@if ($patient?->age_display) {{ $patient->age_display }}, {{ strtolower($patient->gender_label ?? 'patient') }} · @endif @if ($patient?->phone) reach us on {{ $patient->phone }} · @endif tested on {{ $order->ordered_at?->format('d F Y') ?? '—' }} @if ($order->orderedBy) — requested by {{ $order->orderedBy->name }}@endif

What we tested

@if ($items->isEmpty())

No tests were listed on this request.

@else @foreach ($items as $item) @endforeach
Test What we found
{{ $item->test_name }} @if ($item->panel)
part of the {{ $item->panel->name }}
@endif
@if ($item->result_value !== null) {{ rtrim(rtrim(number_format((float) $item->result_value, 4), '0'), '.') }} {{ $item->result_unit }} @elseif (filled($item->result_text)) {{ $item->result_text }} @else Not ready yet @endif @if (($item->result_value !== null || filled($item->result_text)) && isset($meaning[$item->flag]))
{{ $meaning[$item->flag] }}
@endif
@endif

What to do with this page

Bring this page to your next appointment. Your doctor reads the full report — this copy is a friendly summary, and it cannot replace a conversation about your health. Please do not start, stop or change any medicine because of a number on this page.

Results verified by @if ($verified->first()?->verifiedBy) — {{ $verified->first()->verifiedBy->name }} @endif
Received by (patient)
Date
Questions about a result? Call the laboratory on the number at the top of this page and quote your name. Printed {{ now()->format('d F Y, H:i') }} by {{ auth()->user()?->name ?? 'system' }}