@extends('layouts.app') @section('title', 'Lab report') @section('content')
{{ $labReport->report_date->format('j F Y') }} @if($labReport->lab_name) · {{ $labReport->lab_name }} @endif
| Test | Result | Unit | Reference range | Flag |
|---|---|---|---|---|
| {{ $r->test_name }} | {{ $r->display_value }} | {{ $r->unit ?: '—' }} | {{ $r->ref_low !== null || $r->ref_high !== null ? trim(($r->ref_low!==null?rtrim(rtrim(number_format($r->ref_low,3),'0'),'.'):'').' – '.($r->ref_high!==null?rtrim(rtrim(number_format($r->ref_high,3),'0'),'.'):'')) : '—' }} | @if($r->flag==='high')High @elseif($r->flag==='low')Low @elseif($r->flag==='normal')Normal @else —@endif |
{{ $labReport->notes }}