From 2a979c7b72f44ce99df19e294324922ffd790679 Mon Sep 17 00:00:00 2001 From: Regiaaaaaa Date: Mon, 17 Nov 2025 11:41:49 +0700 Subject: [PATCH] feat: create an RW report page --- Controllers/LaporanRwRwController.cs | 88 ++++++++++++++++++++++++ Views/LaporanRwRw/Index.cshtml | 64 +++++++++++++++++ Views/Shared/Layouts/App/_Sidebar.cshtml | 15 ++++ 3 files changed, 167 insertions(+) create mode 100644 Controllers/LaporanRwRwController.cs create mode 100644 Views/LaporanRwRw/Index.cshtml diff --git a/Controllers/LaporanRwRwController.cs b/Controllers/LaporanRwRwController.cs new file mode 100644 index 0000000..35e4067 --- /dev/null +++ b/Controllers/LaporanRwRwController.cs @@ -0,0 +1,88 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BpsRwApp.Controllers +{ + [Route("[controller]/[action]")] + public class LaporanRwRwController : AppControllerBase + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { + bulan = "Januari", + rumah_aktif_memilah = 104, + status = "
Belum Diverifikasi
", + gambar = "" + }, + new { + bulan = "Februari", + rumah_aktif_memilah = 67, + status = "
Belum Diverifikasi
", + gambar = "" + }, + new { + bulan = "Maret", + rumah_aktif_memilah = 110, + status = "
Belum Diverifikasi
", + gambar = "" + }, + new { + bulan = "April", + rumah_aktif_memilah = 88, + status = "
Verifikasi Sudin
", + gambar = "" + }, + new { + bulan = "Mei", + rumah_aktif_memilah = 90, + status = "
Verifikasi Sudin
", + gambar = "" + }, + new { + bulan = "Juni", + rumah_aktif_memilah = 72, + status = "
Verifikasi Sudin
", + gambar = "" + }, + new { + bulan = "Juli", + rumah_aktif_memilah = 81, + status = "
Verifikasi Sudin
", + gambar = "" + }, + new { + bulan = "Agustus", + rumah_aktif_memilah = 65, + status = "
Verifikasi Sudin
", + gambar = "" + }, + new { + bulan = "September", + rumah_aktif_memilah = 90, + status = "
Verifikasi Sudin
", + gambar = "" + }, + new { + bulan = "Oktober", + rumah_aktif_memilah = 72, + status = "
Verifikasi Sudin
", + gambar = "" + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Views/LaporanRwRw/Index.cshtml b/Views/LaporanRwRw/Index.cshtml new file mode 100644 index 0000000..92d2d83 --- /dev/null +++ b/Views/LaporanRwRw/Index.cshtml @@ -0,0 +1,64 @@ +@{ + ViewData["Title"] = "Laporan RW (RW)"; +} + + + +
+

Data Input Laporan RW

+ +
+ +
+
+ + + + + + + + + + + +
NoBulanJumlah Rumah Aktif MemilahStatusGambar
+
+
+ + + + + diff --git a/Views/Shared/Layouts/App/_Sidebar.cshtml b/Views/Shared/Layouts/App/_Sidebar.cshtml index 64954a3..bb83719 100644 --- a/Views/Shared/Layouts/App/_Sidebar.cshtml +++ b/Views/Shared/Layouts/App/_Sidebar.cshtml @@ -155,5 +155,20 @@ +
  • +
    + INPUT + +
    +