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"; +} + +
| No | +Wilayah | +Total Rumah | +Total Rumah Memilah | +Capaian Target (%) | +
|---|