279 lines
16 KiB
C#
279 lines
16 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace BankSampahApp.Controllers.Data
|
|
{
|
|
[Route("Data/[controller]/[action]")]
|
|
public class BankSampahUnitController : Controller
|
|
{
|
|
public IActionResult Index()
|
|
{
|
|
return View("~/Views/Data/BankSampahUnit/Index.cshtml");
|
|
}
|
|
|
|
[HttpGet]
|
|
public IActionResult Table()
|
|
{
|
|
var data = new[]
|
|
{
|
|
new {
|
|
id = 1,
|
|
nama = "BSI Hijau Lestari",
|
|
tgl_pendaftaran = "15 Nov 2023",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 2,
|
|
nama = "BSI Berkah Mandiri",
|
|
tgl_pendaftaran = "8 Jan 2025",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 3,
|
|
nama = "BSI Citra Bersama",
|
|
tgl_pendaftaran = "19 Sep 2023",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 4,
|
|
nama = "BSI Melati Putih",
|
|
tgl_pendaftaran = "3 Des 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 5,
|
|
nama = "BSI Cahaya Sejahtera",
|
|
tgl_pendaftaran = "27 Apr 2026",
|
|
status = "Belum Disetujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 6,
|
|
nama = "BSI Makmur Abadi",
|
|
tgl_pendaftaran = "11 Jul 2025",
|
|
status = "Belum Disetujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 7,
|
|
nama = "BSI Karya Bersama",
|
|
tgl_pendaftaran = "22 Feb 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 8,
|
|
nama = "BSI Sumber Rejeki",
|
|
tgl_pendaftaran = "5 Mei 2023",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 9,
|
|
nama = "BSI Bumi Asri",
|
|
tgl_pendaftaran = "14 Jun 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 10,
|
|
nama = "BSI Alam Indah",
|
|
tgl_pendaftaran = "30 Okt 2023",
|
|
status = "Belum Disetujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 11,
|
|
nama = "BSI Sejahtera Bersama",
|
|
tgl_pendaftaran = "17 Mar 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 12,
|
|
nama = "BSI Harapan Jaya",
|
|
tgl_pendaftaran = "9 Agt 2023",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 13,
|
|
nama = "BSI Maju Bersama",
|
|
tgl_pendaftaran = "25 Des 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 14,
|
|
nama = "BSI Pelangi Nusantara",
|
|
tgl_pendaftaran = "12 Apr 2024",
|
|
status = "Belum Disetujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 15,
|
|
nama = "BSI Serasi Sentosa",
|
|
tgl_pendaftaran = "6 Jul 2023",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 16,
|
|
nama = "BSI Griya Daur Ulang",
|
|
tgl_pendaftaran = "28 Nov 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 17,
|
|
nama = "BSI Eco Persada",
|
|
tgl_pendaftaran = "3 Feb 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 18,
|
|
nama = "BSI Sahabat Lingkungan",
|
|
tgl_pendaftaran = "19 Mei 2023",
|
|
status = "Belum Disetujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 19,
|
|
nama = "BSI Bersih Sejati",
|
|
tgl_pendaftaran = "7 Sep 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 20,
|
|
nama = "BSI Nusa Hijau",
|
|
tgl_pendaftaran = "21 Jan 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 21,
|
|
nama = "BSI Damai Lestari",
|
|
tgl_pendaftaran = "15 Okt 2023",
|
|
status = "Belum Disetujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 22,
|
|
nama = "BSI Pelita Harapan",
|
|
tgl_pendaftaran = "4 Jun 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 23,
|
|
nama = "BSI Mentari Pagi",
|
|
tgl_pendaftaran = "18 Mar 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 24,
|
|
nama = "BSI Mitra Alam",
|
|
tgl_pendaftaran = "10 Agt 2023",
|
|
status = "Belum Disetujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
new {
|
|
id = 25,
|
|
nama = "BSI Perdana Sentosa",
|
|
tgl_pendaftaran = "26 Des 2024",
|
|
status = "Setujui",
|
|
aksi = "<div class=\"flex gap-2\">" +
|
|
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] cursor-pointer edit-btn\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
|
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] cursor-pointer delete-btn\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
|
"</div>",
|
|
},
|
|
};
|
|
|
|
var response = new
|
|
{
|
|
data = data
|
|
};
|
|
|
|
return Json(response);
|
|
}
|
|
}
|
|
}
|