From 87cb975e65edfd4bca2f418fc592d5ba85863c9a Mon Sep 17 00:00:00 2001 From: Regiaaaaaa Date: Mon, 15 Dec 2025 11:35:01 +0700 Subject: [PATCH] slicing: dashboard satpel --- Controllers/DashboardSatpelController.cs | 38 +++ Views/DashboardSatpel/Index.cshtml | 370 +++++++++++++++++++++++ Views/Shared/Layouts/App/_Sidebar.cshtml | 7 + 3 files changed, 415 insertions(+) create mode 100644 Controllers/DashboardSatpelController.cs create mode 100644 Views/DashboardSatpel/Index.cshtml diff --git a/Controllers/DashboardSatpelController.cs b/Controllers/DashboardSatpelController.cs new file mode 100644 index 0000000..4eef769 --- /dev/null +++ b/Controllers/DashboardSatpelController.cs @@ -0,0 +1,38 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BpsRwApp.Controllers +{ + [Route("[controller]/[action]")] + public class DashboardSatpelController : AppControllerBase + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { wilayah = "Kelurahan Duren Tiga", totalRumah = 79671, totalRumahMemilah = 62392, capaianTarget = 80 }, + new { wilayah = "Kelurahan Tanjung Barat", totalRumah = 6948, totalRumahMemilah = 93224, capaianTarget = 80 }, + new { wilayah = "Kelurahan Panmeran", totalRumah = 8768, totalRumahMemilah = 55985, capaianTarget = 80 }, + new { wilayah = "Kelurahan Cipinang Melayu", totalRumah = 69517, totalRumahMemilah = 13264, capaianTarget = 80 }, + new { wilayah = "Kelurahan Koja", totalRumah = 190028, totalRumahMemilah = 53934, capaianTarget = 80 }, + new { wilayah = "Kelurahan Pulau Bidadari", totalRumah = 98931, totalRumahMemilah = 968, capaianTarget = 80 }, + new { wilayah = "Kelurahan Kampung Melayu", totalRumah = 45821, totalRumahMemilah = 38456, capaianTarget = 80 }, + new { wilayah = "Kelurahan Cawang", totalRumah = 67234, totalRumahMemilah = 54187, capaianTarget = 80 }, + new { wilayah = "Kelurahan Penggilingan", totalRumah = 82145, totalRumahMemilah = 71234, capaianTarget = 80 }, + new { wilayah = "Kelurahan Cakung Barat", totalRumah = 95672, totalRumahMemilah = 76538, capaianTarget = 80 }, + new { wilayah = "Kelurahan Jatinegara", totalRumah = 73456, totalRumahMemilah = 58765, capaianTarget = 80 }, + new { wilayah = "Kelurahan Rawa Bunga", totalRumah = 56789, totalRumahMemilah = 45432, capaianTarget = 80 }, + new { wilayah = "Kelurahan Bidara Cina", totalRumah = 64321, totalRumahMemilah = 51457, capaianTarget = 80 }, + new { wilayah = "Kelurahan Kebon Manggis", totalRumah = 78912, totalRumahMemilah = 63129, capaianTarget = 80 }, + new { wilayah = "Kelurahan Pondok Bambu", totalRumah = 85643, totalRumahMemilah = 68514, capaianTarget = 80 } + }; + + return Json(new { data }); + } + } +} \ No newline at end of file diff --git a/Views/DashboardSatpel/Index.cshtml b/Views/DashboardSatpel/Index.cshtml new file mode 100644 index 0000000..ccf5dd6 --- /dev/null +++ b/Views/DashboardSatpel/Index.cshtml @@ -0,0 +1,370 @@ +@{ + ViewData["Title"] = "Dashboard Satpel"; +} + +
+ +
+
+
+

Profil Satuan Pelaksana Pancoran

+
+ + +
+
+
+
+ +
+
+
+ + Jumlah RW +
+
23
+
+
+ +
+
+
+ + Jumlah Rumah +
+
23,004
+
+
+ +
+
+
+ + Jumlah Jiwa (Orang) +
+
179,797
+
+
+ +
+
+
+ + Estimasi Timbulan +
+
3,341
+
Kg/Hari
+
+
+
+
+
+ +
+
+ +
+
+
+ + Jumlah Rumah Memilah +
+
+
46
+ 40% +
+
+
+ +
+
+
+ + Jumlah Rumah Nasabah +
+
+
46
+ 40% +
+
+
+
+
+
+ +
+ +
+ +
+
+

+ Bank Sampah +

+
+
+
+ Aktif +
+ 35 +
+
+
+
+ Tidak Aktif +
+ 35 +
+ + +
+
+ +
+
+
+

Volume Jenis Sampah

+ +
+
+
+ +
+
+
+ + Organik +
+
46
+
+
+ +
+
+
+ + Anorganik +
+
179,797
+
+
+ +
+
+
+ + B3 +
+
3,341
+
+
+ +
+
+
+ + Total +
+
23,004
+
+
+
+
+
+ +
+
+

+ Neraca Sampah +

+ Estimasi Timbulan - Pengurangan Sampah + 73.112 - 0 +
+ Neraca Sampah + 73.112 +
+
+
+
+ +
+ +
+
+
+

Grafik Rumah Aktif Memilah

+
+ +
+
+ +
+ + +
+
+
+

Laporan Rumah Memilah

+ +
+
+
+ + + + + + + + + + + +
NoWilayahTotal RumahTotal Rumah MemilahCapaian Target (%)
+
+
+ + + + + + + \ No newline at end of file diff --git a/Views/Shared/Layouts/App/_Sidebar.cshtml b/Views/Shared/Layouts/App/_Sidebar.cshtml index 702c129..0e481a0 100644 --- a/Views/Shared/Layouts/App/_Sidebar.cshtml +++ b/Views/Shared/Layouts/App/_Sidebar.cshtml @@ -24,6 +24,13 @@ Dashboard (RW) +
  • + + analytics + Dashboard (Satpel) + +
  • account_box