- Menambahkan validasi dan atribut 'nominal_bayar' pada request dan model.
- Menampilkan input 'nominal_bayar' di form persetujuan penawaran.
- Memperbarui tampilan dan data tabel untuk mendukung kolom 'nominal_bayar'.
- Menghapus peran "pemohon-ao", "pemohon-eo", "surveyor", dan "senior-officer" dari beberapa entri.
- Menambahkan peran "admin" untuk menggantikan peran yang dihapus dan mengkonsolidasikan akses.
- Memperbaiki konsistensi peran untuk berbagai entitas dan atribut dalam file.
- Mengubah cara pengolahan data JSON di `KJPPController` untuk menghindari kesalahan pada struktur data.
- Menyesuaikan akses properti JSON di `show.blade.php` agar lebih sesuai dengan data yang diterima.
- Memastikan data ditampilkan secara konsisten dan mencegah error runtime.
This commit addresses the issue where an empty jenis_aset_id array would cause an error in the KJPP data display. It adds a check to ensure the array is not empty before iterating through it, and displays a "-" message if the array is empty.
The changes made are:
1. Added a check for !empty(json_decode($kjpp->jenis_aset_id, true)) inside the @if condition.
2. This ensures that the array is not empty before attempting to loop through it.
3. If the array is empty, a "-" message is displayed instead.
This fix ensures a more robust and user-friendly display of the KJPP data, handling both populated and empty jenis_aset_id arrays gracefully.
This commit addresses the issue where an empty jenis_aset_id array would cause an error in the KJPP data display. It adds a check to ensure the array is not empty before iterating through it, and displays a "-" message if the array is empty.
The changes made are:
1. Added a check for !empty(json_decode($kjpp->jenis_aset_id, true)) inside the @if condition.
2. This ensures that the array is not empty before attempting to loop through it.
3. If the array is empty, a "-" message is displayed instead.
This fix ensures a more robust and user-friendly display of the KJPP data, handling both populated and empty jenis_aset_id arrays gracefully.
- Perbarui kontroler KJPP untuk jenis_aset_id kalau kosong maka isi array kosong jika tidak isi array yang saya isi
- Modifikasi aturan validasi permintaan KJPP di bagian jenis_aset_id supaya bisa diisi kosong
- Buat migrasi untuk memperbarui struktur tabel KJPP yang jenis_aset_id menjadi nullable