@extends('layouts.mother') @section('content')
@if(view()->exists("mother.health-records.tests.{$testResult->test_type}")) @include("mother.health-records.tests.{$testResult->test_type}", [ 'record' => $record, 'testResult' => $testResult ]) @else

{{ $testResult->test_name }}

Visit Date
{{ $record->visit_date->format('d M Y') }}
Test Performed
{{ $testResult->performed_at->format('d M Y, h:i A') }}
Performed By
{{ $testResult->performedByNurse->name }}
Clinic
{{ $record->clinic->name }}
@if($record->status === 'completed' || $record->status === 'reviewed') Download PDF @endif
@php $testData = $testResult->test_data ?? []; @endphp @if(empty($testData))

No test data available.

@else @include('mother.health-records.partials.test-data-display', [ 'testType' => $testResult->test_type, 'testData' => $testData, 'testResult' => $testResult ]) @endif
@endif
@endsection