diff --git a/Controllers/Main/DashboardBsiController.cs b/Controllers/Main/DashboardBsiController.cs
new file mode 100644
index 0000000..dfa71d8
--- /dev/null
+++ b/Controllers/Main/DashboardBsiController.cs
@@ -0,0 +1,12 @@
+using Microsoft.AspNetCore.Mvc;
+
+namespace BankSampahApp.Controllers.Main
+{
+ public class DashboardBsiController : Controller
+ {
+ public IActionResult Index()
+ {
+ return View("~/Views/Main/DashboardBsi/Index.cshtml");
+ }
+ }
+}
\ No newline at end of file
diff --git a/Controllers/Main/DashboardBsuController.cs b/Controllers/Main/DashboardBsuController.cs
new file mode 100644
index 0000000..b27aa15
--- /dev/null
+++ b/Controllers/Main/DashboardBsuController.cs
@@ -0,0 +1,13 @@
+using Microsoft.AspNetCore.Mvc;
+
+namespace BankSampahApp.Controllers.Main
+{
+ [Route("Main/[controller]/[action]")]
+ public class DashboardBsuController : Controller
+ {
+ public IActionResult Index()
+ {
+ return View("~/Views/Main/DashboardBsu/Index.cshtml");
+ }
+ }
+}
\ No newline at end of file
diff --git a/Controllers/Main/DashboardController.cs b/Controllers/Main/DashboardController.cs
index c0952a1..ba13442 100644
--- a/Controllers/Main/DashboardController.cs
+++ b/Controllers/Main/DashboardController.cs
@@ -10,92 +10,9 @@ namespace BankSampahApp.Controllers.Main
return View("~/Views/Main/Dashboard/Index.cshtml");
}
- public IActionResult Nasabah()
- {
- return View("~/Views/Main/Dashboard/Nasabah.cshtml");
- }
-
public IActionResult Bsu()
{
return View("~/Views/Main/Dashboard/Bsu.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/Controllers/Main/DashboardNasabahController.cs b/Controllers/Main/DashboardNasabahController.cs
new file mode 100644
index 0000000..ea46c8c
--- /dev/null
+++ b/Controllers/Main/DashboardNasabahController.cs
@@ -0,0 +1,91 @@
+using Microsoft.AspNetCore.Mvc;
+
+namespace BankSampahApp.Controllers.Main
+{
+ [Route("Main/[controller]/[action]")]
+ public class DashboardNasabahController : Controller
+ {
+ public IActionResult Index()
+ {
+ return View("~/Views/Main/DashboardNasabah/Index.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);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Views/Main/DashboardBsi/Index.cshtml b/Views/Main/DashboardBsi/Index.cshtml
new file mode 100644
index 0000000..1b8c21b
--- /dev/null
+++ b/Views/Main/DashboardBsi/Index.cshtml
@@ -0,0 +1,173 @@
+@{
+ ViewData["Title"] = "Dashboard BSI";
+}
+
+
+
+ Dashboard BSI
+
+
+
+
+
+
+
+ Selamat Datang
+ BSI Jakarta Timur
+
+
+
+
+
+
+
+
+
Total Sampah BSI
+
5,812 Kg
+
+
+
+ 40%
+
+ vs bulan kemarin
+
+
+
+
+
+
Total Sampah BSI
+
5,812 Kg
+
+
+
+ 40%
+
+ vs bulan kemarin
+
+
+
+
+
+
Total Sampah Offtaker
+
89.4 Kg
+
+
+
+ 40%
+
+ vs bulan kemarin
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Sampah Daur Ulang Terkelola (Kg)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@section Scripts {
+
+
+}
\ No newline at end of file
diff --git a/Views/Main/Dashboard/Bsu.cshtml b/Views/Main/DashboardBsu/Index.cshtml
similarity index 83%
rename from Views/Main/Dashboard/Bsu.cshtml
rename to Views/Main/DashboardBsu/Index.cshtml
index d2833a7..dd11642 100644
--- a/Views/Main/Dashboard/Bsu.cshtml
+++ b/Views/Main/DashboardBsu/Index.cshtml
@@ -4,7 +4,7 @@
- Dashboard BSU <-- Update data --!>
+ Dashboard BSU