@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
No tests were listed on this request.
@else| 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
|
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
|