From 5bf9911dc188cf35ad26825f8c5881a15d6bd247 Mon Sep 17 00:00:00 2001 From: Regiaaaaaa Date: Thu, 18 Dec 2025 09:06:14 +0700 Subject: [PATCH] slicing: new page laporan rw (satpel) on the data verifikasi menu --- Controllers/LaporanRwSatpelController.cs | 47 +++++ Views/LaporanRwSatpel/Index.cshtml | 247 +++++++++++++++++++++++ Views/Shared/Layouts/App/_Sidebar.cshtml | 7 + 3 files changed, 301 insertions(+) create mode 100644 Controllers/LaporanRwSatpelController.cs create mode 100644 Views/LaporanRwSatpel/Index.cshtml diff --git a/Controllers/LaporanRwSatpelController.cs b/Controllers/LaporanRwSatpelController.cs new file mode 100644 index 0000000..aacc20f --- /dev/null +++ b/Controllers/LaporanRwSatpelController.cs @@ -0,0 +1,47 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BpsRwApp.Controllers +{ + [Route("[controller]/[action]")] + public class LaporanRwSatpelController : AppControllerBase + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = Enumerable.Range(0, 100) + .Select(index => + { + var wilayah = ControllerSampleData.WilayahSeeds[index % ControllerSampleData.WilayahSeeds.Length]; + var bulan = ControllerSampleData.BulanNames[index % ControllerSampleData.BulanNames.Length]; + var status = index % 4 == 0 + ? "
Belum Verifikasi
" + : "
Verifikasi
"; + + return new + { + kelurahan = wilayah.Kelurahan, + rw = (index % 20) + 1, + bulan, + rumah_aktif_memilah = 450 + (index * 11 % 600), + status, + aksi = "
" + + "" + + "
", + }; + }) + .ToArray(); + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Views/LaporanRwSatpel/Index.cshtml b/Views/LaporanRwSatpel/Index.cshtml new file mode 100644 index 0000000..85abf6c --- /dev/null +++ b/Views/LaporanRwSatpel/Index.cshtml @@ -0,0 +1,247 @@ +@{ + ViewData["Title"] = "Laporan RW"; +} + + + + +
+
+

Laporan RW (Satpel)

+
+
+ + download + Unduh Laporan + + +
+
+ +
+ + + + + + + + + + + + +
+
+ + + + + + + + + + + + + +
NoKelurahanRWBulanRumah Aktif MemilahStatusAksi
+
+
+ + + + + + + \ No newline at end of file diff --git a/Views/Shared/Layouts/App/_Sidebar.cshtml b/Views/Shared/Layouts/App/_Sidebar.cshtml index 38ef850..c1eafc0 100644 --- a/Views/Shared/Layouts/App/_Sidebar.cshtml +++ b/Views/Shared/Layouts/App/_Sidebar.cshtml @@ -152,6 +152,13 @@ Laporan RW +
  • + + house + Laporan RW (Satpel) + +