@php $patient = $patient ?? null; @endphp

Demographics

Allergies

@for ($i = 0; $i < 3; $i++) @php $allergy = old("allergies.{$i}", $patient?->allergies[$i] ?? null); @endphp
@endfor

Chronic conditions

@for ($i = 0; $i < 3; $i++) @php $condition = old("conditions.{$i}", $patient?->conditions[$i] ?? null); @endphp
@endfor

Family history

@for ($i = 0; $i < 2; $i++) @php $family = old("family_history.{$i}", $patient?->familyHistory[$i] ?? null); @endphp
@endfor

Emergency contact

@php $contact = old('emergency_contacts.0', $patient?->emergencyContacts->first()); @endphp

Insurance

@php $insurance = old('insurance.0', $patient?->insurancePolicies->first()); @endphp

Documents

PDF or images, up to 10 MB each.