diff --git a/Controllers/LokasiController.cs b/Controllers/LokasiController.cs new file mode 100644 index 0000000..2cad09f --- /dev/null +++ b/Controllers/LokasiController.cs @@ -0,0 +1,108 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BpsRwApp.Controllers +{ + [Route("[controller]/[action]")] + public class LokasiController : AppControllerBase + { + public IActionResult Index() + { + return View(); + } + + [HttpGet] + public IActionResult Table() + { + var data = new[] + { + new { + usulan = "Lokasi G", + alamat = "Perumahan Mawar Indah", + statusLahan = "Inventaris", + pemilikLahan = "Larasati Wulandari", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi I", + alamat = "Jl. Bougenville, RT 02", + statusLahan = "Inventaris", + pemilikLahan = "Arya Dwipangga", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi F", + alamat = "Lingk. Edelweiss, No. 7", + statusLahan = "Inventaris", + pemilikLahan = "Kirana Lazuardi", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi C", + alamat = "Jl. Anggrek No. 14", + statusLahan = "Inventaris", + pemilikLahan = "Bagas Priambodo", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi B", + alamat = "Jl. Tulip, Kel. Gardenia", + statusLahan = "Inventaris", + pemilikLahan = "Raisa Adiwangsa", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi E", + alamat = "Jl. Lavender, RT 09", + statusLahan = "Inventaris", + pemilikLahan = "Satria Gunawan", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi A", + alamat = "Komp. Melati, No. 22", + statusLahan = "Inventaris", + pemilikLahan = "Kartika Hastuti", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi D", + alamat = "Gg. Dahlia, RT 05", + statusLahan = "Inventaris", + pemilikLahan = "Bayu Anggoro", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi H", + alamat = "Ds. Cempaka, Kab. Anyer", + statusLahan = "Inventaris", + pemilikLahan = "Citra Kirani", + luasLahan = 500, + statusUsulan = "Aktif" + }, + new { + usulan = "Lokasi J", + alamat = "Jl. Kenanga, Blok C", + statusLahan = "Inventaris", + pemilikLahan = "Galih Prasetya", + luasLahan = 500, + statusUsulan = "Aktif" + }, + }; + + var response = new + { + data = data + }; + + return Json(response); + } + } +} diff --git a/Views/Lokasi/Index.cshtml b/Views/Lokasi/Index.cshtml new file mode 100644 index 0000000..28a98f7 --- /dev/null +++ b/Views/Lokasi/Index.cshtml @@ -0,0 +1,137 @@ +@{ + ViewData["Title"] = "Lokasi TP3SR & Parkir Pengumpulan Sampah"; +} + + + + + +
+
+

Profil Rw

+
+
+ + +
+
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ + +
+ + +
+
+ + + + + + + + + + + + + + +
NoUsulanAlamat LokasiStatus LahanPemilik LahanLuas LahanStatus UsulanAksi
+
+
+
+ + +@await Html.PartialAsync("_ModalTambah") + + + + + + diff --git a/Views/Lokasi/_ModalTambah.cshtml b/Views/Lokasi/_ModalTambah.cshtml new file mode 100644 index 0000000..298816a --- /dev/null +++ b/Views/Lokasi/_ModalTambah.cshtml @@ -0,0 +1,98 @@ + + + diff --git a/Views/Shared/Layouts/App/_Sidebar.cshtml b/Views/Shared/Layouts/App/_Sidebar.cshtml index 559e3bd..fcaa2d5 100644 --- a/Views/Shared/Layouts/App/_Sidebar.cshtml +++ b/Views/Shared/Layouts/App/_Sidebar.cshtml @@ -9,14 +9,19 @@ @{ var controller = (ViewContext.RouteData.Values["controller"] as string) ?? string.Empty; } - +
  • analytics Dashboard
  • - +
  • + + account_box + Profil RW + +
  • DATA SUDIN