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