diff --git a/Controllers/Transaksi/SedekahSampahController.cs b/Controllers/Transaksi/SedekahSampahController.cs new file mode 100644 index 0000000..a0575c1 --- /dev/null +++ b/Controllers/Transaksi/SedekahSampahController.cs @@ -0,0 +1,178 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BankSampahApp.Controllers.Master +{ + [Route("Transaksi/[controller]/[action]")] + public class SedekahSampahController : Controller + { + public IActionResult Index() + { + return View("~/Views/Transaksi/SedekahSampah/Index.cshtml"); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { + tanggal_transaksi = "23 Mei 2025", + nama_nasabah = "Siti Aminah", + total_sedekah = 289000, + total_sampah = 560120, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "24 Mei 2025", + nama_nasabah = "Budi Hartono", + total_sedekah = 175000, + total_sampah = 42, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "25 Mei 2025", + nama_nasabah = "Rina Widya", + total_sedekah = 94000, + total_sampah = 31, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "26 Mei 2025", + nama_nasabah = "Ahmad Fauzi", + total_sedekah = 215000, + total_sampah = 58, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "27 Mei 2025", + nama_nasabah = "Nurhayati", + total_sedekah = 132000, + total_sampah = 24, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "28 Mei 2025", + nama_nasabah = "Dewi Anggraini", + total_sedekah = 305000, + total_sampah = 63, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "29 Mei 2025", + nama_nasabah = "Heri Susanto", + total_sedekah = 164000, + total_sampah = 37, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "30 Mei 2025", + nama_nasabah = "Yuni Marlina", + total_sedekah = 92000, + total_sampah = 18, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "31 Mei 2025", + nama_nasabah = "Agus Setiawan", + total_sedekah = 187000, + total_sampah = 52, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "1 Juni 2025", + nama_nasabah = "Lestari Kumala", + total_sedekah = 256000, + total_sampah = 74, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "2 Juni 2025", + nama_nasabah = "Rizky Saputra", + total_sedekah = 110000, + total_sampah = 29, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "3 Juni 2025", + nama_nasabah = "Indah Pratiwi", + total_sedekah = 195000, + total_sampah = 46, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "4 Juni 2025", + nama_nasabah = "Wahyu Hidayat", + total_sedekah = 89000, + total_sampah = 17, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "5 Juni 2025", + nama_nasabah = "Nadia Ramadhani", + total_sedekah = 320000, + total_sampah = 81, + aksi = "
" + + "" + + "" + + "
", + }, + new { + tanggal_transaksi = "6 Juni 2025", + nama_nasabah = "Fajar Maulana", + total_sedekah = 143000, + total_sampah = 33, + aksi = "
" + + "" + + "" + + "
", + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Views/Shared/_SidebarUnified.cshtml b/Views/Shared/_SidebarUnified.cshtml index 6756c5f..fe7825e 100644 --- a/Views/Shared/_SidebarUnified.cshtml +++ b/Views/Shared/_SidebarUnified.cshtml @@ -88,13 +88,14 @@
  • -
    +
    Transaksi
    • Nasabah
    • +
    • Sedekah Sampah
    • Penarikan Tabungan
    • BSI
    • Offtaker
    • diff --git a/Views/Transaksi/SedekahSampah/Index.cshtml b/Views/Transaksi/SedekahSampah/Index.cshtml new file mode 100644 index 0000000..0573c83 --- /dev/null +++ b/Views/Transaksi/SedekahSampah/Index.cshtml @@ -0,0 +1,248 @@ +@{ + ViewData["Title"] = "Sedekah Sampah"; +} + +
      +
      + + Sedekah Sampah + +
      + +
      + +
      +
      + + + + + + + + +
      + +
      +
      +
      + + + + + + + + + + + + + +
      NoTanggal TransaksiNama NasabahTotal Sedekah (Rp)Total Sampah (Kg)Aksi
      +
      +
      +
      + + +@section Scripts { + +}