{{-- Patient record (print_all): orthodontic treatment and admission entered in this visit — printed only when there is data. --}} @php $fmt = fn ($d, $f = 'd M, Y') => $d ? \Carbon\Carbon::parse($d)->format($f) : '-'; @endphp @if (($orthodentics ?? collect())->isNotEmpty())
Orthodontic @foreach ($orthodentics as $o) @endforeach
DateTypeTreatmentStatusNotes
{{ $fmt($o->date) }}{{ $o->type }}{{ $o->category?->name }}{{ $o->status }}{{ $o->notes }}
@endif @if (($admissions ?? collect())->isNotEmpty())
Admission @foreach ($admissions as $ad) @endforeach
Admission #Date inDate outRoom / bedDoctorStatusNotes
{{ $ad->admission_no ?: $ad->id }} {{ $fmt($ad->date_in ?: $ad->date) }} {{ $ad->date_out ? $fmt($ad->date_out) : 'Still admitted' }} {{ $ad->rm?->name }}{{ $ad->bed ? ' · bed ' . $ad->bed : '' }} {{ $ad->Dr?->name }} {{ $ad->status }} {{ $ad->notes }}
@endif