@if ($patient->familyHealthHistories->first())
Data riwayat keluarga sudah tersedia
Diperbarui: {{ \App\Helpers\DateHelper::formatShort( $patient->familyHealthHistories->first()->updated_at, ) }} {{ $patient->familyHealthHistories ->first() ->updated_at->format('H:i') }}
@endif @php $latestFamily = $patient->familyHealthHistories->first(); $familyMembers = [ 'father' => 'Bapak', 'mother' => 'Ibu', 'siblings' => 'Saudara', 'others' => 'Lain-lain', ]; $healthConditions = [ 'diabetes' => 'Diabetes', 'hypertension' => 'Hipertensi', ]; @endphp
@foreach ($familyMembers as $key => $label) @foreach ($healthConditions as $conditionKey => $conditionLabel) @endforeach @endforeach
Anggota Keluarga Diabetes Hipertensi Penyakit Lainnya
{{ $label }}