diff --git a/Controllers/DashboardController.cs b/Areas/Admin/Controllers/DashboardController.cs similarity index 50% rename from Controllers/DashboardController.cs rename to Areas/Admin/Controllers/DashboardController.cs index 6ef89aa..16f66dc 100644 --- a/Controllers/DashboardController.cs +++ b/Areas/Admin/Controllers/DashboardController.cs @@ -1,17 +1,13 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; -namespace BpsRw.Controllers +namespace BpsRwApp.Areas.Admin.Controllers { + [Area("Admin")] public class DashboardController : Controller { public IActionResult Index() { return View(); } - - public IActionResult Reports() - { - return View(); - } } -} \ No newline at end of file +} diff --git a/Areas/Admin/Controllers/DataPendampingRwController.cs b/Areas/Admin/Controllers/DataPendampingRwController.cs new file mode 100644 index 0000000..7419b15 --- /dev/null +++ b/Areas/Admin/Controllers/DataPendampingRwController.cs @@ -0,0 +1,308 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BpsRwApp.Areas.Admin.Controllers +{ + [Area("Admin")] + public class DataPendampingRwController : Controller + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult TableRapot() + { + var data = new[] + { + new { + nama = "Risky Adi Putra", + checklist = "
10
", + berat_sampah = "
10
", + foto = "10", + rumah_aktif_memilah = "
0
", + status = "
Sangat Baik
", + }, + new { + nama = "Sulaiman", + checklist = "
11
", + berat_sampah = "
10
", + foto = "889", + rumah_aktif_memilah = "
11
", + status = "
Baik
", + }, + new { + nama = "Siti Nurhaliza", + checklist = "
12
", + berat_sampah = "
10
", + foto = "22", + rumah_aktif_memilah = "
0
", + status = "
Baik
", + }, + new { + nama = "Budi Santoso", + checklist = "
18
", + berat_sampah = "
1
", + foto = "889", + rumah_aktif_memilah = "
11
", + status = "
Baik
", + }, + new { + nama = "Dewi Lestari", + checklist = "
1
", + berat_sampah = "
10
", + foto = "22", + rumah_aktif_memilah = "
10
", + status = "
Baik
", + }, + new { + nama = "Andi Prabowo", + checklist = "
17
", + berat_sampah = "
11
", + foto = "889", + rumah_aktif_memilah = "
11
", + status = "
Sangat Baik
", + }, + new { + nama = "Nina Sari", + checklist = "
15
", + berat_sampah = "
10
", + foto = "22", + rumah_aktif_memilah = "
10
", + status = "
Sengat Baik
", + }, + new { + nama = "Hendra Wijaya", + checklist = "
1
", + berat_sampah = "
11
", + foto = "889", + rumah_aktif_memilah = "
11
", + status = "
Sangat Baik
", + }, + new { + nama = "Lina Marlina", + checklist = "
12
", + berat_sampah = "
10
", + foto = "22", + rumah_aktif_memilah = "
10
", + status = "
Sangat Baik
", + }, + new { + nama = "Yudi Hartono", + checklist = "
16
", + berat_sampah = "
11
", + foto = "889", + rumah_aktif_memilah = "
11
", + status = "
Sangat Baik
", + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + + [HttpGet] + public IActionResult TableChecklist() + { + var data = new[] + { + new { + nama = "Risky Adi Putra", + checklist = "
10
", + foto = "10", + rumah_aktif_memilah = "
0/12
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Sulaiman", + checklist = "
11
", + foto = "889", + rumah_aktif_memilah = "
11/11
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Siti Nurhaliza", + checklist = "
12
", + foto = "22", + rumah_aktif_memilah = "
0/10
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Budi Santoso", + checklist = "
18
", + foto = "889", + rumah_aktif_memilah = "
11/11
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Dewi Lestari", + checklist = "
1
", + foto = "22", + rumah_aktif_memilah = "
10/10
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Andi Prabowo", + checklist = "
17
", + foto = "889", + rumah_aktif_memilah = "
11/11
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Nina Sari", + checklist = "
15
", + foto = "22", + rumah_aktif_memilah = "
10/10
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Hendra Wijaya", + checklist = "
1
", + foto = "889", + rumah_aktif_memilah = "
11/11
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Lina Marlina", + checklist = "
12
", + foto = "22", + rumah_aktif_memilah = "
10/10
", + aksi = "
" + + "Detail" + + "
", + }, + new { + nama = "Yudi Hartono", + checklist = "
16
", + foto = "889", + rumah_aktif_memilah = "
11/11
", + aksi = "
" + + "Detail" + + "
", + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + + [HttpGet] + public IActionResult TableBeratSampah() + { + var data = new[] + { + new { + nama = "Risky Adi Putra", + total_berat = 104, + mudah_terurai = 104, + material_daur_ulang = 104, + b3 = 104, + residu = 104, + }, + new { + nama = "Sulaiman", + total_berat = 67, + mudah_terurai = 67, + material_daur_ulang = 67, + b3 = 67, + residu = 67, + }, + new { + nama = "Siti Nurhaliza", + total_berat = 110, + mudah_terurai = 110, + material_daur_ulang = 110, + b3 = 110, + residu = 110, + }, + new { + nama = "Budi Santoso", + total_berat = 88, + mudah_terurai = 88, + material_daur_ulang = 88, + b3 = 88, + residu = 88, + }, + new { + nama = "Dewi Lestari", + total_berat = 90, + mudah_terurai = 90, + material_daur_ulang = 90, + b3 = 90, + residu = 90, + }, + new { + nama = "Andi Prabowo", + total_berat = 72, + mudah_terurai = 72, + material_daur_ulang = 72, + b3 = 72, + residu = 72, + }, + new { + nama = "Nina Sari", + total_berat = 81, + mudah_terurai = 81, + material_daur_ulang = 81, + b3 = 81, + residu = 81, + }, + new { + nama = "Hendra Wijaya", + total_berat = 65, + mudah_terurai = 65, + material_daur_ulang = 65, + b3 = 65, + residu = 65, + }, + new { + nama = "Lina Marlina", + total_berat = 78, + mudah_terurai = 78, + material_daur_ulang = 78, + b3 = 78, + residu = 78, + }, + new { + nama = "Yudi Hartono", + total_berat = 95, + mudah_terurai = 95, + material_daur_ulang = 95, + b3 = 95, + residu = 95, + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Areas/Admin/Controllers/LaporanRwController.cs b/Areas/Admin/Controllers/LaporanRwController.cs new file mode 100644 index 0000000..1722cba --- /dev/null +++ b/Areas/Admin/Controllers/LaporanRwController.cs @@ -0,0 +1,108 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BpsRwApp.Areas.Admin.Controllers +{ + [Area("Admin")] + public class LaporanRwController : Controller + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { + kelurahan = "Kebon Jeruk", + rw = 03, + bulan = "September", + rumah_aktif_memilah = 581, + status = "
Belum Verifikasi
", + aksi = "
" + + "Detail" + + "
", + }, + new { + kelurahan = "Pancoran", + rw = 01, + bulan = "April", + rumah_aktif_memilah = 889, + status = "
Belum Verifikasi
", + aksi = "
" + + "Detail" + + "
", + }, + new { + kelurahan = "Kembangan", + rw = 02, + bulan = "Maret", + rumah_aktif_memilah = 673, + status = "
Belum Verifikasi
", + aksi = "
" + + "Detail" + + "
", + }, + new { + kelurahan = "Senen", + rw = 04, + bulan = "Februari", + rumah_aktif_memilah = 790, + status = "
Verifikasi Sudin
", + aksi = "
" + + "Detail" + + "
", + }, + new { + kelurahan = "Kebayoran Baru", + rw = 05, + bulan = "Oktober", + rumah_aktif_memilah = 750, + status = "
Verifikasi Sudin
", + aksi = "
" + + "Detail" + + "
", + }, + new { + kelurahan = "Menteng", + rw = 06, + bulan = "Agustus", + rumah_aktif_memilah = 780, + status = "
Verifikasi Sudin
", + aksi = "
" + + "Detail" + + "
", + }, + new { + kelurahan = "Cilandak", + rw = 07, + bulan = "Juli", + rumah_aktif_memilah = 553, + status = "
Verifikasi Sudin
", + aksi = "
" + + "Detail" + + "
", + }, + new { + kelurahan = "Cakung", + rw = 08, + bulan = "Januari", + rumah_aktif_memilah = 582, + status = "
Verifikasi Sudin
", + aksi = "
" + + "Detail" + + "
", + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Areas/Admin/Controllers/RumahMemilahController.cs b/Areas/Admin/Controllers/RumahMemilahController.cs new file mode 100644 index 0000000..2928bfa --- /dev/null +++ b/Areas/Admin/Controllers/RumahMemilahController.cs @@ -0,0 +1,108 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BpsRwApp.Areas.Admin.Controllers +{ + [Area("Admin")] + public class RumahMemilahController : Controller + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { + kecamatan = "Kebayoran", + jumlah_rw = 92, + total_rumah = 701, + rumah_aktif_memilah = 581, + rumah_nasabah = 581, + bank_sampah = 581, + }, + new { + kecamatan = "Tebet", + jumlah_rw = 44, + total_rumah = 934, + rumah_aktif_memilah = 889, + rumah_nasabah = 889, + bank_sampah = 889, + }, + new { + kecamatan = "Menteng", + jumlah_rw = 9, + total_rumah = 1378, + rumah_aktif_memilah = 673, + rumah_nasabah = 673, + bank_sampah = 673, + }, + new { + kecamatan = "Cilandak", + jumlah_rw = 18, + total_rumah = 1094, + rumah_aktif_memilah = 790, + rumah_nasabah = 790, + bank_sampah = 790, + }, + new { + kecamatan = "Setiabudi", + jumlah_rw = 17, + total_rumah = 794, + rumah_aktif_memilah = 750, + rumah_nasabah = 750, + bank_sampah = 750, + }, + new { + kecamatan = "Gambir", + jumlah_rw = 4, + total_rumah = 1573, + rumah_aktif_memilah = 780, + rumah_nasabah = 780, + bank_sampah = 780, + }, + new { + kecamatan = "Cakung", + jumlah_rw = 55, + total_rumah = 1160, + rumah_aktif_memilah = 553, + rumah_nasabah = 553, + bank_sampah = 553, + }, + new { + kecamatan = "Kelapa Gading", + jumlah_rw = 95, + total_rumah = 1663, + rumah_aktif_memilah = 582, + rumah_nasabah = 582, + bank_sampah = 582, + }, + new { + kecamatan = "Pancoran", + jumlah_rw = 48, + total_rumah = 730, + rumah_aktif_memilah = 935, + rumah_nasabah = 935, + bank_sampah = 935, + }, + new { + kecamatan = "Tanah Abang", + jumlah_rw = 80, + total_rumah = 1046, + rumah_aktif_memilah = 593, + rumah_nasabah = 593, + bank_sampah = 593, + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Areas/Admin/Views/Dashboard/Index.cshtml b/Areas/Admin/Views/Dashboard/Index.cshtml new file mode 100644 index 0000000..1e11b8e --- /dev/null +++ b/Areas/Admin/Views/Dashboard/Index.cshtml @@ -0,0 +1,3 @@ +@{ + ViewData["Title"] = "Dashboard"; +} \ No newline at end of file diff --git a/Areas/Admin/Views/DataPendampingRw/Index.cshtml b/Areas/Admin/Views/DataPendampingRw/Index.cshtml new file mode 100644 index 0000000..cef776a --- /dev/null +++ b/Areas/Admin/Views/DataPendampingRw/Index.cshtml @@ -0,0 +1,148 @@ +@{ + ViewData["Title"] = "Data Pendamping RW"; +} + + + + +
+
+

Data Pendamping RW

+
+
+ + filter_list + Filter + +
+
+ +
+ +
+ +
+
+ + + + + + + + + + + + + +
NoNamaChecklistBerat SampahFotoRumah Aktif MemilahStatus
+
+
+ + +
+
+ + + + + + + + + + + + +
NoNamaChecklistFotoRumah Aktif MemilahAksi
+
+
+ + +
+
+ + + + + + + + + + + + + +
NoNamaTotal Berat (Kg)Mudah TeruraiMaterial Daur Ulang (Kg)B3 (Kg)Residu (Kg)
+
+
+
+ + + + + + \ No newline at end of file diff --git a/Areas/Admin/Views/LaporanRw/Index.cshtml b/Areas/Admin/Views/LaporanRw/Index.cshtml new file mode 100644 index 0000000..32ca50d --- /dev/null +++ b/Areas/Admin/Views/LaporanRw/Index.cshtml @@ -0,0 +1,142 @@ +@{ + ViewData["Title"] = "Laporan RW"; +} + + + + +
+
+

Laporan RW

+
+
+ + download + Unduh Laporan + + +
+
+ +
+ + + + + + +
+
+ + + + + + + + + + + + + +
NoKelurahanRWBulanRumah Aktif MemilahStatusAksi
+
+
+ + + + + + \ No newline at end of file diff --git a/Areas/Admin/Views/RumahMemilah/Index.cshtml b/Areas/Admin/Views/RumahMemilah/Index.cshtml new file mode 100644 index 0000000..bac2600 --- /dev/null +++ b/Areas/Admin/Views/RumahMemilah/Index.cshtml @@ -0,0 +1,91 @@ +@{ + ViewData["Title"] = "Rumah Memilah"; +} + + + + +
+
+

Rumah Memilah

+
+
+ + filter_list + Filter + +
+
+ +
+ +
+
+ + + + + + + + + + + + + +
NoKecamatanJumlah RWTotal RumahRumah Aktif MemilahRumah NasabahBank Sampah
+
+
+ + + + + + \ No newline at end of file diff --git a/Areas/Admin/Views/_ViewImports.cshtml b/Areas/Admin/Views/_ViewImports.cshtml new file mode 100644 index 0000000..3cb67cc --- /dev/null +++ b/Areas/Admin/Views/_ViewImports.cshtml @@ -0,0 +1,2 @@ +@using BpsRwApp +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/Areas/Admin/Views/_ViewStart.cshtml b/Areas/Admin/Views/_ViewStart.cshtml new file mode 100644 index 0000000..4cf0c1a --- /dev/null +++ b/Areas/Admin/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "/Areas/Shared/Layouts/App/_Layout.cshtml"; +} diff --git a/Views/Shared/_LayoutApp.cshtml b/Areas/Shared/Layouts/App/_Layout.cshtml similarity index 74% rename from Views/Shared/_LayoutApp.cshtml rename to Areas/Shared/Layouts/App/_Layout.cshtml index 890b457..cd896ba 100644 --- a/Views/Shared/_LayoutApp.cshtml +++ b/Areas/Shared/Layouts/App/_Layout.cshtml @@ -1,4 +1,4 @@ - + @@ -20,35 +20,37 @@ + rel="stylesheet"> + href="https://cdn.jsdelivr.net/npm/@@phosphor-icons/web@2.1.2/src/regular/style.css" /> + href="https://cdn.jsdelivr.net/npm/@@phosphor-icons/web@2.1.2/src/fill/style.css" /> + href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" /> - +
- @await Html.PartialAsync("_Navbar") + +
@RenderBody()
- @await Html.PartialAsync("_Sidebar") + +
diff --git a/Views/Shared/_Navbar.cshtml b/Areas/Shared/Layouts/App/_Navbar.cshtml similarity index 68% rename from Views/Shared/_Navbar.cshtml rename to Areas/Shared/Layouts/App/_Navbar.cshtml index 9d7b4bc..63d0cf9 100644 --- a/Views/Shared/_Navbar.cshtml +++ b/Areas/Shared/Layouts/App/_Navbar.cshtml @@ -1,6 +1,6 @@ -