From 8fa4b2ea9e921e4fcc5421f7bea30312895801d4 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Sun, 8 Jun 2025 23:45:05 +0700 Subject: [PATCH] feat(webstatement): tambahkan menu dan halaman untuk laporan transaksi ATM - Menambahkan menu baru "Laporan Transaksi ATM" di file `module.json`: - Pengaturan path: `atm-reports`. - Ikon: `ki-filled ki-printer text-lg text-primary`. - Role akses hanya untuk `administrator`. - Menambahkan breadcrumb untuk laporan transaksi ATM di file `breadcrumbs.php`: - Nama breadcrumb: `atm-reports.index`. - Nama tampilan: `Laporan Transaksi ATM`. - Mengarah ke route `atm-reports.index`. - Menambahkan view halaman `atm-reports/index.blade.php`: - Form permintaan laporan transaksi ATM: - Input tanggal laporan. - Tombol submit laporan. - Tabel daftar laporan yang mendukung: - Pagination, filter, dan search. - Status laporan (`completed`, `processing`, `pending`, `failed`). - Status otorisasi (`approved`, `rejected`, `pending`). - Aksi: Lihat detail, unduh (jika selesai), dan hapus laporan (jika pending/failed). - Menambahkan script handling untuk: - Delete laporan transaksi dengan modal konfirmasi menggunakan Swal. - Konfigurasi data datatable dengan sorting, pagination, dan API. - Tujuan pembaruan: - Memberikan akses pengguna untuk mengelola laporan transaksi ATM melalui UI. - Memungkinkan permintaan, pelacakan, dan penghapusan laporan transaksi ATM secara mudah. Signed-off-by: Daeng Deni Mardaeni --- module.json | 13 + resources/views/atm-reports/index.blade.php | 271 ++++++++++++++++++++ routes/breadcrumbs.php | 6 + 3 files changed, 290 insertions(+) create mode 100644 resources/views/atm-reports/index.blade.php diff --git a/module.json b/module.json index 9ac9e25..0e92183 100644 --- a/module.json +++ b/module.json @@ -63,6 +63,19 @@ "roles": [] } ], + "laporan": [ + { + "title": "Laporan Transaksi ATM", + "path": "atm-reports", + "icon": "ki-filled ki-printer text-lg text-primary", + "classes": "", + "attributes": [], + "permission": "", + "roles": [ + "administrator" + ] + } + ], "master": [ { "title": "Basic Data", diff --git a/resources/views/atm-reports/index.blade.php b/resources/views/atm-reports/index.blade.php new file mode 100644 index 0000000..adcc2a7 --- /dev/null +++ b/resources/views/atm-reports/index.blade.php @@ -0,0 +1,271 @@ +@extends('layouts.main') + +@section('title', 'ATM Transaction Reports') + +@section('breadcrumbs') + {{ Breadcrumbs::render(request()->route()->getName()) }} +@endsection + +@section('content') +
+
+
+

Request ATM Transaction Report

+
+
+
+ @csrf + +
+
+ + + @error('report_date') +
{{ $message }}
+ @enderror +
+ +
+ +
+
+
+
+
+ +
+
+
+

+ ATM Transaction Reports +

+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + +
+ + + ID + + + Period + + + Report Date + + + Status + + + Authorization + + + Created At + + Action
+
+ +
+
+
+
+@endsection + +@push('scripts') + + + +@endpush diff --git a/routes/breadcrumbs.php b/routes/breadcrumbs.php index 9d43203..42fc368 100644 --- a/routes/breadcrumbs.php +++ b/routes/breadcrumbs.php @@ -114,3 +114,9 @@ $trail->parent('home'); $trail->push('Print Stetement', route('statements.index')); }); + + + Breadcrumbs::for('atm-reports.index', function (BreadcrumbTrail $trail) { + $trail->parent('home'); + $trail->push('Laporan Transaksi ATM', route('atm-reports.index')); + });