diff --git a/Controllers/Main/DashboardController.cs b/Controllers/Main/DashboardController.cs index 8ccb567..1a1ef63 100644 --- a/Controllers/Main/DashboardController.cs +++ b/Controllers/Main/DashboardController.cs @@ -9,5 +9,88 @@ namespace BankSampahApp.Controllers.Main { return View("~/Views/Main/Dashboard/Index.cshtml"); } + + public IActionResult Nasabah() + { + return View("~/Views/Main/Dashboard/Nasabah.cshtml"); + } + + [HttpGet] + public IActionResult Table(){ + var data = new[] + { + new { + kategori = "Logam", + total_berat = 400, + }, + new { + kategori = "Plastik", + total_berat = 120, + }, + new { + kategori = "Kertas", + total_berat = 85, + }, + new { + kategori = "Kaca", + total_berat = 300, + }, + new { + kategori = "Elektronik", + total_berat = 25, + }, + new { + kategori = "Organik", + total_berat = 500, + }, + new { + kategori = "Tekstil", + total_berat = 60, + }, + new { + kategori = "Karet", + total_berat = 150, + }, + new { + kategori = "Kayu", + total_berat = 270, + }, + new { + kategori = "Baterai", + total_berat = 18, + }, + new { + kategori = "Minyak", + total_berat = 90, + }, + new { + kategori = "Medis", + total_berat = 45, + }, + new { + kategori = "Aluminium", + total_berat = 200, + }, + new { + kategori = "Tembaga", + total_berat = 155, + }, + new { + kategori = "Karet Sintetis", + total_berat = 130, + }, + new { + kategori = "Kompos", + total_berat = 420, + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } } } diff --git a/Views/Shared/_SidebarUnified.cshtml b/Views/Shared/_SidebarUnified.cshtml index 4c885ac..b29b444 100644 --- a/Views/Shared/_SidebarUnified.cshtml +++ b/Views/Shared/_SidebarUnified.cshtml @@ -26,6 +26,14 @@ + +
  • + + + Dashboard Nasabah + +
  • +