{{-- Generic Smart Report v2 stub partial. --}} {{-- Renders the rasterised template background for a group at full A4 with --}} {{-- a "TODO" marker and the package code so we can verify routing/dispatch --}} {{-- and font/coordinate mapping while the real per-test partials are being --}} {{-- built (PR2-PR6). --}} @php /** @var array $group Group view-model from WebController v2 dispatch */ $bgGroup = $group['bg_group'] ?? 'smart-report'; $bgPages = max(1, (int) ($group['bg_pages'] ?? 1)); $package = $group['package'] ?? ($group['firstPackage'] ?? null); $code = $package->lABCATEGORYPACKAGE->CODE ?? '?'; $name_ar = $package->NAME_AR ?? ($package->lABCATEGORYPACKAGE->REPORT_DISPLAY_NAME_AR ?? ($package->lABCATEGORYPACKAGE->NAME_AR ?? '')); @endphp @for ($p = 1; $p <= $bgPages; $p++)
@include('pdf.smart_report.components.backgrounds.bg', ['template' => $bgGroup, 'page' => $p]) {{-- Patient header (shared between all v2 partials) --}} @if ($p === 1) @include('pdf.smart_report.components.patient_header', [ 'Order' => $Order, 'Profile' => $Profile, 'firstPackage' => $package, 'Category' => $group['category_ar'] ?? '', 'Description' => $group['category_description_ar'] ?? '', ]) @endif {{-- TODO marker so QA can spot un-implemented partials at a glance. --}}
[v2 TODO] {{ $code }}   {{ $name_ar }}   (page {{ $p }}/{{ $bgPages }})
@endfor