From 948e1b1017fcb041c57ccc96708aae2f939ce4e9 Mon Sep 17 00:00:00 2001 From: Regiaaaaaa Date: Mon, 15 Dec 2025 13:08:39 +0700 Subject: [PATCH] slicing: dashboard sudin --- Controllers/DashboardSudinController.cs | 39 +++ Views/DashboardSudin/Index.cshtml | 370 +++++++++++++++++++++++ Views/Shared/Layouts/App/_Sidebar.cshtml | 7 + 3 files changed, 416 insertions(+) create mode 100644 Controllers/DashboardSudinController.cs create mode 100644 Views/DashboardSudin/Index.cshtml diff --git a/Controllers/DashboardSudinController.cs b/Controllers/DashboardSudinController.cs new file mode 100644 index 0000000..22cbb7d --- /dev/null +++ b/Controllers/DashboardSudinController.cs @@ -0,0 +1,39 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BpsRwApp.Controllers +{ + [Route("[controller]/[action]")] + public class DashboardSudinController : AppControllerBase + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { wilayah = "Kecamatan Matraman", totalRumah = 79671, totalRumahMemilah = 62392, capaianTarget = 80 }, + new { wilayah = "Kecamatan Pulo Gadung", totalRumah = 6948, totalRumahMemilah = 93224, capaianTarget = 80 }, + new { wilayah = "Kecamatan Jatinegara", totalRumah = 8768, totalRumahMemilah = 55985, capaianTarget = 80 }, + new { wilayah = "Kecamatan Duren Sawit", totalRumah = 69517, totalRumahMemilah = 13264, capaianTarget = 80 }, + new { wilayah = "Kecamatan Kramat Jati", totalRumah = 190028, totalRumahMemilah = 53934, capaianTarget = 80 }, + new { wilayah = "Kecamatan Makasar", totalRumah = 98931, totalRumahMemilah = 968, capaianTarget = 80 }, + new { wilayah = "Kecamatan Ciracas", totalRumah = 45821, totalRumahMemilah = 38456, capaianTarget = 80 }, + new { wilayah = "Kecamatan Cipayung", totalRumah = 67234, totalRumahMemilah = 54187, capaianTarget = 80 }, + new { wilayah = "Kecamatan Cakung", totalRumah = 82145, totalRumahMemilah = 71234, capaianTarget = 80 }, + new { wilayah = "Kecamatan Pasar Rebo", totalRumah = 95672, totalRumahMemilah = 76538, capaianTarget = 80 }, + new { wilayah = "Kecamatan Duren Sawit 2", totalRumah = 73456, totalRumahMemilah = 58765, capaianTarget = 80 }, + new { wilayah = "Kecamatan Cakung 2", totalRumah = 56789, totalRumahMemilah = 45432, capaianTarget = 80 }, + new { wilayah = "Kecamatan Ciracas 2", totalRumah = 64321, totalRumahMemilah = 51457, capaianTarget = 80 }, + new { wilayah = "Kecamatan Makasar 2", totalRumah = 78912, totalRumahMemilah = 63129, capaianTarget = 80 }, + new { wilayah = "Kecamatan Jatinegara 2", totalRumah = 85643, totalRumahMemilah = 68514, capaianTarget = 80 }, + }; + + return Json(new { data }); + } + + } +} \ No newline at end of file diff --git a/Views/DashboardSudin/Index.cshtml b/Views/DashboardSudin/Index.cshtml new file mode 100644 index 0000000..5c85d23 --- /dev/null +++ b/Views/DashboardSudin/Index.cshtml @@ -0,0 +1,370 @@ +@{ + ViewData["Title"] = "Dashboard Satpel"; +} + +
+ +
+
+
+

Profil Suku Dinas Lingkungan Hidup Jakarta Timur

+
+ + +
+
+
+
+ +
+
+
+ + 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 0e481a0..f3acdfa 100644 --- a/Views/Shared/Layouts/App/_Sidebar.cshtml +++ b/Views/Shared/Layouts/App/_Sidebar.cshtml @@ -31,6 +31,13 @@ Dashboard (Satpel) +
  • + + analytics + Dashboard (Sudin) + +
  • account_box