{{-- Smart Report v2 - PCR template group. --}} {{-- Covers all CODEs that use pcr-test-smart-report.pdf as their background. --}} {{-- Mirrors: GetPCRPDF / GetPCRQUAPDF / GetPCRGENPDF / GetMTBPCRPDF / --}} {{-- GetIgraPDF / GetStoneAnalysisPDF / GetQuantiferonAnalysisPDF / --}} {{-- GetProteinElectrophoresisPDF / GetMTHFRPCRPDF / GetNIPTPCRPDF / --}} {{-- GetNBSPDF / GetBFPDF / GetNIPTCTRAnalysisPDF / GetDFGTAnalysisPDF --}} @php /** @var \App\Services\SmartReportV2Service $service */ $service = $service ?? app(\App\Services\SmartReportV2Service::class); $Package = $group['package'] ?? ($group['firstPackage'] ?? null); $code = $Package->lABCATEGORYPACKAGE->CODE ?? ''; // $bgTemplate may be passed by general_card when it delegates PCR-code // rendering; all current callers use the shared "pcr" background. $bgTemplate = $bgTemplate ?? 'pcr'; $model = $Package ? $service->buildPcrModel($Package, $code) : ['variant' => 'pcr_qual', 'result' => null]; $variant = $model['variant'] ?? 'pcr_qual'; @endphp {{-- ═══════════════════════════════════════════════════════════════════════ --}} {{-- VARIANT: pcr_qual (GetPCRPDF / GetMTBPCRPDF — single result) --}} {{-- ═══════════════════════════════════════════════════════════════════════ --}} @if ($variant === 'pcr_qual')
| {{ $pageIdx === 0 ? 'Test Name' : 'Diseases' }} | Result | Reference Range | Units |
| {{ $row['type'] === 'TEXTAREA' ? '' : $row['name_en'] }} | {{ $res['text'] }} | @foreach ($refs as $ln){{ $ln }}@if (!$loop->last) @endif @endforeach |
{{ $row['type'] === 'TEXTAREA' ? '' : (!empty($row['unit']) ? $row['unit'] : '--') }} |
| {{ $grp['title'] }} | |||
| {{ $row['show_name'] && $row['type'] !== 'TEXTAREA' ? $row['name_en'] : '' }} | {{ $res['text'] }} | @foreach ($refs as $ln){{ $ln }}@if (!$loop->last) @endif @endforeach |
{{ $row['type'] === 'TEXTAREA' ? '' : (!empty($row['unit']) ? $row['unit'] : '--') }} |