{{-- Smart Report v2 — shared HTML page frame. --}} {{-- Replaces the rasterised template backgrounds (bg//page-N.png) so the --}} {{-- static design is editable. All geometry was measured from the 150dpi rasters --}} {{-- (1240x1754 px, 5.905 px/mm) of the original PDF templates. --}} {{-- --}} {{-- Options (all optional): --}} {{-- $labels : bool — header field labels + separator line (default true) --}} {{-- $advice : bool — نصائح block (line + icon + label) (default false) --}} {{-- $brand : bool — white "Blazma" wordmark in the band (default true) --}} {{-- $decor : bool — hexagon decorations + footer strip (default true) --}} @php $labels = $labels ?? true; $advice = $advice ?? false; // v1's template bands are a plain colored stripe with NO wordmark on any // page, so brand defaults off. (Kept as an opt-in flag for flexibility.) $brand = $brand ?? false; $decor = $decor ?? true; // The old blue-hexagon footer strip (decor-bottom.png) is no longer drawn. $brandImg = public_path('img/smart-report-pdf/bg-html/brand-band.png'); $adviceImg = public_path('img/smart-report-pdf/bg-html/advice-icon.png'); @endphp
{{-- Footer: clean white with a thin separator hairline above the footer --}} {{-- lockup (Blazma wordmark / signatures / QR), matching the Figma --}} {{-- redesign. The old blue-hexagon decor strip (decor-bottom.png) is --}} {{-- intentionally not drawn. --}} @if ($decor) {{-- Figma footer hairline: 1090px wide at y=1488 → y=260.4mm, x 7..197. --}}
@endif {{-- Teal side band (full height, right edge). Figma: 30px at x=1170 → --}} {{-- 5.2mm at x=204.8mm. --}}
{{-- White "Blazma" wordmark inside the band --}} @if ($brand && is_file($brandImg)) @endif @if ($labels) {{-- Figma header hairline UNDER the patient name: 920px at (210,250) → --}} {{-- 161mm at (36.8, 43.8). Name sits above it, the icon-label field --}} {{-- rows below it (both drawn by patient_header.blade.php). No vertical --}} {{-- separator. --}}
@endif @if ($advice) {{-- نصائح (tips) sidebar: separator line, hand icon, green label --}}
@if (is_file($adviceImg)) @endif
نصائح
@endif