diff --git a/Controllers/Main/ReduksiSampahDinasController.cs b/Controllers/Main/ReduksiSampahDinasController.cs new file mode 100644 index 0000000..f468317 --- /dev/null +++ b/Controllers/Main/ReduksiSampahDinasController.cs @@ -0,0 +1,254 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BankSampahApp.Controllers.Main +{ + [Route("Main/[controller]/[action]")] + public class ReduksiSampahDinasController : Controller + { + public IActionResult Index() + { + return View("~/Views/Main/ReduksiSampahDinas/Index.cshtml"); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] { + new { + id = 1, + periode_bulan = "Jan 2025", + nama_lokasi = "Jakarta Pusat", + alamat = @" +
+ Tanah Abang +
+ Cideng + RT 002 + RW 001 +
+
", + jenis_lokasi = "Maggot", + berat_maggot = 1, + berat_komposting = 5, + berat_bank_sampah = 6, + aksi = @"
+ + + +
", + }, + new { + id = 2, + periode_bulan = "Feb 2025", + nama_lokasi = "Jakarta Barat", + alamat = @" +
+ Palmerah +
+ Kemanggisan + RT 003 + RW 004 +
+
", + jenis_lokasi = "Organik", + berat_maggot = 2, + berat_komposting = 4, + berat_bank_sampah = 3, + aksi = @"
+ + + +
", + }, + new { + id = 3, + periode_bulan = "Mar 2025", + nama_lokasi = "Jakarta Selatan", + alamat = @" +
+ Tebet +
+ Manggarai + RT 001 + RW 002 +
+
", + jenis_lokasi = "Maggot", + berat_maggot = 3, + berat_komposting = 6, + berat_bank_sampah = 2, + aksi = @"
+ + + +
", + }, + new { + id = 4, + periode_bulan = "Apr 2025", + nama_lokasi = "Jakarta Timur", + alamat = @" +
+ Cakung +
+ Jatinegara + RT 004 + RW 006 +
+
", + jenis_lokasi = "Anorganik", + berat_maggot = 1, + berat_komposting = 3, + berat_bank_sampah = 7, + aksi = @"
+ + + +
", + }, + new { + id = 5, + periode_bulan = "Mei 2025", + nama_lokasi = "Jakarta Utara", + alamat = @" +
+ Koja +
+ Lagoa + RT 005 + RW 003 +
+
", + jenis_lokasi = "Maggot", + berat_maggot = 4, + berat_komposting = 5, + berat_bank_sampah = 1, + aksi = @"
+ + + +
", + }, + new { + id = 6, + periode_bulan = "Jun 2025", + nama_lokasi = "Depok", + alamat = @" +
+ Beji +
+ Kukusan + RT 002 + RW 007 +
+
", + jenis_lokasi = "Organik", + berat_maggot = 2, + berat_komposting = 6, + berat_bank_sampah = 4, + aksi = @"
+ + + +
", + }, + new { + id = 7, + periode_bulan = "Jul 2025", + nama_lokasi = "Bekasi", + alamat = @" +
+ Pondok Gede +
+ Jatibening + RT 006 + RW 002 +
+
", + jenis_lokasi = "Maggot", + berat_maggot = 5, + berat_komposting = 3, + berat_bank_sampah = 2, + aksi = @"
+ + + +
", + }, + new { + id = 8, + periode_bulan = "Agu 2025", + nama_lokasi = "Tangerang", + alamat = @" +
+ Ciledug +
+ Paninggilan + RT 001 + RW 005 +
+
", + jenis_lokasi = "Anorganik", + berat_maggot = 1, + berat_komposting = 2, + berat_bank_sampah = 6, + aksi = @"
+ + + +
", + }, + new { + id = 9, + periode_bulan = "Sep 2025", + nama_lokasi = "Bogor", + alamat = @" +
+ Cibinong +
+ Pabuaran + RT 003 + RW 004 +
+
", + jenis_lokasi = "Organik", + berat_maggot = 2, + berat_komposting = 5, + berat_bank_sampah = 3, + aksi = @"
+ + + +
", + }, + new { + id = 10, + periode_bulan = "Okt 2025", + nama_lokasi = "Jakarta Selatan", + alamat = @" +
+ Pasar Minggu +
+ Pejaten + RT 007 + RW 008 +
+
", + jenis_lokasi = "Maggot", + berat_maggot = 6, + berat_komposting = 4, + berat_bank_sampah = 2, + aksi = @"
+ + + +
", + } + }; + + + return Json(new { data = data }); + } + } + +} \ No newline at end of file diff --git a/Views/Main/ReduksiSampahDinas/Index.cshtml b/Views/Main/ReduksiSampahDinas/Index.cshtml new file mode 100644 index 0000000..7766fd0 --- /dev/null +++ b/Views/Main/ReduksiSampahDinas/Index.cshtml @@ -0,0 +1,92 @@ +@{ + ViewData["Title"] = "Reduksi Sampah Dinas"; +} + +
+
+ + Reduksi Sampah Dinas + +
+
+ +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + +
NoPeriodeNama LokasiAlamatBerat Maggot(Kg)Berat Komposting(Kg)Berat Bank Sampah(Kg)Total Reduksi(Kg)Aksi
+
+
+
+ + +@section Scripts { + +} diff --git a/Views/Shared/_SidebarUnified.cshtml b/Views/Shared/_SidebarUnified.cshtml index 35d23fd..2d78cdc 100644 --- a/Views/Shared/_SidebarUnified.cshtml +++ b/Views/Shared/_SidebarUnified.cshtml @@ -181,6 +181,12 @@ +
  • + + + Reduksi Sampah Dinas + +