diff --git a/app/Http/Controllers/PenilaianController.php b/app/Http/Controllers/PenilaianController.php index a3da8f7..bd4c3ec 100644 --- a/app/Http/Controllers/PenilaianController.php +++ b/app/Http/Controllers/PenilaianController.php @@ -834,7 +834,7 @@ class PenilaianController extends Controller } } - public function revisiLaporan($id, Request $request) + public function revisiLaporan(Request $request,$id) { $permohonan = Permohonan::findOrFail($id); $permohonan->update([ diff --git a/resources/views/laporan/index.blade.php b/resources/views/laporan/index.blade.php index 555b890..f07bf16 100644 --- a/resources/views/laporan/index.blade.php +++ b/resources/views/laporan/index.blade.php @@ -189,6 +189,8 @@ const inspeksiId = data.debiture?.documents[0]?.inspeksi[0]?.id || '-'; const dokumenID = data.debiture?.documents[0]?.id || '-'; const jenisJaminanID = data.debiture?.documents[0]?.jenis_jaminan_id || '-'; + const typePenilaian = data.penilai?.type_penilai || ''; + const type = data.penilai?.type || ''; let laporanButton = ''; let resumeButton = ''; @@ -202,17 +204,23 @@ if(data.nilai_liquidasi==null) { laporanButton = ` - Laporn + Laporan `; } - console.log(data.nilai_liquidasi); if(data.status_bayar=="sudah_bayar" && data.nilai_liquidasi >0) { - - laporanButton = ` - + if(data.penilai.type_penilai=='resume' && !data.penilai.resume){ + laporanButton = ` + Laporan `; + } else { + laporanButton = ` + + Laporan + `; + } + } return `${resumeButton} ${laporanButton}`; diff --git a/resources/views/penilaian/otorisator/show.blade.php b/resources/views/penilaian/otorisator/show.blade.php index 82b55ec..025b2db 100644 --- a/resources/views/penilaian/otorisator/show.blade.php +++ b/resources/views/penilaian/otorisator/show.blade.php @@ -372,7 +372,7 @@ }, }); $.ajax({ - url: `/otorisator/revisi/${dataId}/`, + url: `/otorisator/revisi/${dataId}`, type: 'POST', data: { message: userMessage