@extends('frontend.diagnostic.layouts.template-base') @section('meta_tags') @include('frontend.diagnostic.layouts.meta-tags', ['title' => 'Lab Report', 'page' => 'report']) @endsection @section('header') @include('frontend.diagnostic.layouts.header') @endsection @section('content') @php $bill = $booking->labBill; $patient = $bill?->patient; @endphp

{{ $booking->packages->pluck('title')->join(', ') ?: $booking->reportDisplayTitle() }}

@if($bill) Download report @endif

Patient: {{ $booking->name }}

Collection: Home visit — {{ $booking->date?->format('d M Y') }}

@if($bill?->reported_on)

Reported on: {{ $bill->reported_on->format('d M Y, h:i A') }}

@endif
@if($bill && $bill->results->isNotEmpty())
@foreach($bill->results as $row) @endforeach
Test Result Unit Reference
{{ $row->test_name ?? $row->parameter ?? '—' }} {{ $row->result_value ?? $row->value ?? '—' }} {{ $row->unit ?? '—' }} {{ $row->reference_range ?? '—' }}
@elseif($bill?->lab_investigations)

Investigations: {{ $bill->lab_investigations }}

Detailed line results are being finalized. Please check back shortly or contact the lab.

@else
No result lines are available for this report yet.
@endif @if($bill?->report_interpretation)
Interpretation
{!! \App\Support\RichTextSanitizer::clean($bill->report_interpretation) !!}
@endif
@endsection