{{-- Smart Report v2 - Another Semen Analysis (ASA, SAH). --}} {{-- Mirrors SmartReportService::GetAnotherSemenanalysisPDF (lines 7838-8039). --}} {{-- Tabular layout on pcr-test template with optional hours sub-section for SAH. --}} @php $service = $service ?? app(\App\Services\SmartReportV2Service::class); $Package = $group['package'] ?? ($group['firstPackage'] ?? null); $code = $Package->lABCATEGORYPACKAGE->CODE ?? ''; $isSah = ($code === 'SAH'); $model = $Package ? $service->buildAnotherSemenModel($Package, $Profile, $code) : ['code' => $code, 'pages' => [['header' => [], 'rows' => [], 'is_hours' => false]], 'comment' => null]; @endphp @foreach ($model['pages'] as $pageIdx => $page)