fix(pemohon/survey): penambahan resedule di awal pemohon dan resedule suveyor, dan perbaikkan tolak paparan, dan perbaikkan struktur foto

This commit is contained in:
majid
2025-03-06 05:16:48 +07:00
parent 3f3c384f9a
commit 65bfa9eeec
7 changed files with 349 additions and 229 deletions

View File

@@ -428,3 +428,22 @@ function getWilayahName($code, $type)
return null;
}
}
function formatLabel($key) {
$customLabels = [
'shgb_no_kel_desa' => 'SHGB',
'nib' => 'NIB',
'img_pbg_no' =>'IMB/PBG NO',
'no_surat_ukur_gs' => 'No Surat Ukur/GS',
];
// Jika ada dalam mapping, gunakan label custom
if (array_key_exists($key, $customLabels)) {
return $customLabels[$key];
}
// Default: Ubah underscore menjadi spasi dan kapitalisasi
return ucwords(str_replace('_', ' ', $key));
}