{{-- Smart Report v2 - Patient / page header. --}}
{{-- Coordinates mirror SmartReportService::setPatiantInfoWithAdvice 1:1 --}}
{{-- (lines 6025-6390). All positioning is in mm against the rasterised --}}
{{-- smart-report.pdf background. The view-model is built by --}}
{{-- SmartReportV2Service::buildPageHeaderModel. --}}
@php
/**
* @var \App\Services\SmartReportV2Service $service
* @var array $header Built by SmartReportV2Service::buildPageHeaderModel()
*/
$service = $service ?? app(\App\Services\SmartReportV2Service::class);
if (!isset($header)) {
[$titles] = [$service->deriveHeaderTitles($firstPackage)];
$header = $service->buildPageHeaderModel(
$Order,
$firstPackage,
$Profile,
$Name ?? ($firstPackage->NAME ?? $titles['name']),
$Category ?? $titles['category'],
$Description ?? $titles['description'],
$Packages ?? null,
$setAdvice ?? true
);
}
@endphp
{{-- Category icon (top-right under hospital logo) --}}
@if (!empty($header['category_icon']))
{{-- Aligns with the category title at v1's 54mm. --}}
@endif
{{-- Profile-specific hospital logo (only Profile #18 in v1) --}}
@if (!empty($header['profile_logo']))
@endif
{{-- Blazma logo bottom-right --}}
@if (!empty($header['blazma_logo']) && is_file($header['blazma_logo']))
@endif
{{-- =================================================================== --}}
{{-- Footer band (flow / flexbox — Phase 1 refactor). One row under the --}}
{{-- hairline: profile footer logo (left) · Blazma+تقنية سعودية (centre) · --}}
{{-- signatures + QR (right). Element order/size is controlled by the --}}
{{-- .sr-footer* utility classes in result.blade.php, not per-item mm. --}}
{{-- =================================================================== --}}
@php
$blazmaTechLogo = public_path('img/smart-report-pdf/bg-html/teal/blazma-tech-logo.png');
@endphp