From d9325598491ba3bcf91a9035ea198ae8c1748d4f Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Wed, 17 Sep 2025 13:02:58 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(slik):=20implementasi=20fitur?= =?UTF-8?q?=20laporan=20SLIK=20dengan=20integrasi=20SweetAlert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Menambahkan tombol aksi "Pindahkan ke Laporan SLIK" pada halaman index & detail - Integrasi SweetAlert2 untuk konfirmasi, loading state, dan notifikasi sukses/gagal - Implementasi auto-refresh DataTable setelah pemindahan berhasil - Disable tombol otomatis setelah sukses untuk mencegah duplikasi data - LaporanSlikController: method store() dengan transaksi DB & auto-delete dari tabel sliks - Routing baru untuk index, datatables, store, dan export laporan SLIK - Penyesuaian views (index & show) dengan tombol, script SweetAlert, dan feedback visual - Proteksi keamanan: CSRF token, validasi input, transaksi DB, dan error logging - Testing checklist: pindahkan data, refresh tabel, disable tombol, error handling, responsif mobile/desktop --- module.json | 13 +++ resources/views/slik/index.blade.php | 129 +++++++++++++++++++-------- resources/views/slik/show.blade.php | 86 ++++++++++++++++++ routes/web.php | 11 ++- 4 files changed, 200 insertions(+), 39 deletions(-) diff --git a/module.json b/module.json index 79e308d..f40e5d3 100644 --- a/module.json +++ b/module.json @@ -445,6 +445,19 @@ "administrator", "admin" ] + }, + { + "title": "Laporan SLIK", + "path": "admin-kredit.laporan-slik", + "icon": "ki-filled ki-filter-tablet text-lg text-primary", + "classes": "", + "attributes": [], + "permission": "", + "roles": [ + "adk", + "administrator", + "admin" + ] }] }, { diff --git a/resources/views/slik/index.blade.php b/resources/views/slik/index.blade.php index 362f372..caa5840 100644 --- a/resources/views/slik/index.blade.php +++ b/resources/views/slik/index.blade.php @@ -169,7 +169,6 @@ - @endsection @push('styles') @@ -212,16 +211,8 @@ @push('scripts') - + + @endpush diff --git a/resources/views/slik/show.blade.php b/resources/views/slik/show.blade.php index 811df41..7c23d5f 100644 --- a/resources/views/slik/show.blade.php +++ b/resources/views/slik/show.blade.php @@ -14,6 +14,11 @@

Informasi lengkap debitur {{ $slik->nama_debitur }}

+ Kembali @@ -165,6 +170,87 @@ @push('scripts')