{{-- Smart Report v2 - Blood typing (ABO). --}} {{-- Mirrors SmartReportService::GetBTPDF (lines 4397-4514). Single page with --}} {{-- blood type icons, RH factor, and Arabic description strings. --}} @php /** @var array $group Group view-model from WebController v2 dispatch */ /** @var \App\Services\SmartReportV2Service $service */ $service = $service ?? app(\App\Services\SmartReportV2Service::class); $Package = $group['package'] ?? ($group['firstPackage'] ?? null); $model = $Package ? $service->buildBloodTypingModel($Package) : ['blood_type' => '', 'rh_factor' => '', 'statics' => [], 'conditionals' => [], 'descriptions' => []]; @endphp
@include('pdf.smart_report.components.backgrounds.bg', ['template' => 'blood-typing', 'page' => 1]) @include('pdf.smart_report.components.patient_header', [ 'Order' => $Order, 'Profile' => $Profile, 'firstPackage' => $Package, 'Category' => (($Package->lABCATEGORYPACKAGE->REPORT_DISPLAY_NAME_AR ?? null) ?: ($Package->lABCATEGORYPACKAGE->NAME_AR ?? '')), 'Description' => $Package->lABCATEGORYPACKAGE->SMART_DESC_AR ?? '', ]) {{-- Static blood type labels (A / B / O / AB) --}} @foreach ($model['statics'] as $img) @if (is_file($img['img'])) @endif @endforeach {{-- Conditional images (eye, cir, RH plus/minus) --}} @foreach ($model['conditionals'] as $img) @if (is_file($img['img'])) @endif @endforeach {{-- Arabic description lines. Start BELOW the "تتميز هذه الفصيلة …" heading --}} {{-- (drawn by backgrounds/blood-typing.blade.php at 124.5mm, 11pt) so the --}} {{-- first line no longer overlaps it. --}} @foreach ($model['descriptions'] as $idx => $line)
{{ $line }}
@endforeach