fix(pemohon/survey): penambahan resedule di awal pemohon dan resedule suveyor, dan perbaikkan tolak paparan, dan perbaikkan struktur foto
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user