@php
$patient = $regularCheckup->patient;
$patientAge = $patient->formatAgeAt($regularCheckup->checkup_date);
$genderLabel = match ($patient->gender) {
'male' => 'Laki-laki',
'female' => 'Perempuan',
default => '-',
};
$maritalStatusLabel = match ($patient->marital_status) {
'single' => 'Belum Menikah',
'married' => 'Menikah',
'divorced' => 'Cerai Hidup',
'widowed' => 'Cerai Mati',
'widow' => 'Janda',
'widower' => 'Duda',
default => '-',
};
@endphp
Nomor Pendaftaran
{{ $regularCheckup->checkup_number }}
Tanggal Pendaftaran
{{
\App\Helpers\DateHelper::formatShort(
$regularCheckup->checkup_date,
)
}}{{
$regularCheckup->checkup_time
? ' ' . $regularCheckup->checkup_time->format('H:i')
: ''
}}
Nomor Rekam Medis
{{ $patient->medical_record_number ?: '-' }}
Nama Pasien
{{ $patient->name }}
NIK
{{ $patient->nik ?: '-' }}
Jenis Kelamin
{{ $genderLabel }}
Tempat Lahir
{{ $patient->birth_place ?: '-' }}
Tanggal Lahir
{{
$patient->birth_date
? \App\Helpers\DateHelper::formatDate($patient->birth_date)
: '-'
}}
Umur Saat Pendaftaran
{{ $patientAge ?? '-' }}
Status Pernikahan
{{ $maritalStatusLabel }}
Nomor Telepon
{{ $patient->phone_number ?: '-' }}
Email
{{ $patient->email ?: '-' }}
Alamat
{{ $patient->address ?: '-' }}