{{-- Patient record (print_all): examinations entered in this visit — vital sign readings, eye examination, spectacle prescription, clinic assessment. Each section prints only when it has data. --}} @php $eyeAny = collect($eye ?? [])->contains(fn ($rows) => $rows->isNotEmpty()); $fmt = fn ($d, $f = 'd M, Y') => $d ? \Carbon\Carbon::parse($d)->format($f) : '-'; @endphp @if (($all_vitals ?? collect())->count() > 1)
@endif @if ($eyeAny) @endif @if (($spectacles ?? collect())->isNotEmpty()) @endif @if ($clinic_assessment ?? null) @endif