@foreach ([
'nik' => 'NIK', 'identity_no' => 'No. Identitas', 'name' => 'Nama Lengkap *',
'nickname' => 'Panggilan', 'birth_place' => 'Tempat Lahir', 'birth_date' => 'Tanggal Lahir',
'marital_status' => 'Status (PTKP)', 'sex' => 'Jenis Kelamin', 'blood_type' => 'Gol. Darah',
'join_date' => 'Tanggal Masuk', 'term_date' => 'Tanggal Keluar', 'insurance_no' => 'No. Asuransi',
'npwp' => 'NPWP', 'phone' => 'No. Telepon', 'email' => 'Email',
] as $key => $label)
@if ($key === 'sex')
@elseif ($key === 'marital_status')
@elseif (in_array($key, ['birth_date', 'join_date', 'term_date'], true))
@else
@endif
@error('form.' . $key)
{{ $message }}
@enderror
@endforeach
Gaji & Tunjangan
@foreach ([
'basic_salary' => 'Gaji Pokok / Upah', 'position_allowance' => 'Tunj. Jabatan',
'allowance' => 'Tunj. Lain', 'meal_allowance' => 'Uang Makan',
'incentive' => 'Insentif', 'overtime_rate' => 'Tarif Lembur',
'tunj_luar_kota' => 'Tunj. Luar Kota', 'tunj_malam' => 'Tunj. Malam',
'tunj_lembur' => 'Tunj. Lembur', 'pot_telat' => 'Pot. Telat',
] as $key => $label)
@endforeach