feat: menu harga sampah
parent
9943daa198
commit
ea61cbd3dd
|
|
@ -0,0 +1,228 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace BankSampahApp.Controllers.Main
|
||||
{
|
||||
[Route("Main/[controller]/[action]")]
|
||||
public class HargaSampahController : Controller
|
||||
{
|
||||
public IActionResult Index()
|
||||
{
|
||||
return View("~/Views/Main/HargaSampah/Index.cshtml");
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult Table()
|
||||
{
|
||||
var data = new[]
|
||||
{
|
||||
new {
|
||||
nama_subkategori = "Plastik kemasan",
|
||||
harga = 2500,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Baterai bekas",
|
||||
harga = 5000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Sisa makanan",
|
||||
harga = 1000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Kertas koran",
|
||||
harga = 3500,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Botol kaca",
|
||||
harga = 4000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Kardus bekas",
|
||||
harga = 2000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Botol plastik PET",
|
||||
harga = 3000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Kaleng aluminium",
|
||||
harga = 6000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Kertas HVS",
|
||||
harga = 2800,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Plastik HDPE",
|
||||
harga = 3200,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Elektronik bekas",
|
||||
harga = 15000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Tembaga",
|
||||
harga = 45000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Besi scrap",
|
||||
harga = 3500,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Kain perca",
|
||||
harga = 1500,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Styrofoam",
|
||||
harga = 500,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Kertas duplex",
|
||||
harga = 2200,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Plastik PP",
|
||||
harga = 2700,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Gelas plastik",
|
||||
harga = 1800,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Buku bekas",
|
||||
harga = 2500,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Botol kaca berwarna",
|
||||
harga = 3500,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Kantong plastik",
|
||||
harga = 800,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Aluminium foil",
|
||||
harga = 12000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Kertas karton",
|
||||
harga = 1800,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Lampu bekas",
|
||||
harga = 2000,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
new {
|
||||
nama_subkategori = "Tutup botol plastik",
|
||||
harga = 1200,
|
||||
aksi = "<div class=\"flex gap-2\">" +
|
||||
"<button class=\"p-2 bg-amber-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-note-pencil text-white text-sm\"></i></button>" +
|
||||
"<button class=\"p-2 bg-red-500 rounded-full w-[36px] h-[36px]\"><i class=\"ph ph-trash text-white text-sm\"></i></button>" +
|
||||
"</div>",
|
||||
},
|
||||
};
|
||||
|
||||
var response = new
|
||||
{
|
||||
data = data
|
||||
};
|
||||
|
||||
return Json(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,200 @@
|
|||
@{
|
||||
ViewData["Title"] = "Harga Sampah";
|
||||
}
|
||||
|
||||
<div class="flex flex-col gap-2 md:flex-row md:justify-between md:gap-0">
|
||||
<div class="prose">
|
||||
<span class="text-xl font-semibold text-gray-900 font-['Plus_Jakarta_Sans']">
|
||||
Harga Sampah
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button class="btn btn-sm rounded-full bg-green-800 text-white hover:bg-green-900" onclick="modal_tambah.showModal()">
|
||||
<i class="ph ph-plus"></i>
|
||||
Tambah
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal Tambah/Edit Data -->
|
||||
<dialog id="modal_tambah" class="modal modal-bottom sm:modal-middle">
|
||||
<div class="modal-box w-full max-w-3xl p-6 bg-white rounded-2xl">
|
||||
<h3 id="modal_title" class="text-gray-900 text-xl font-semibold font-['Plus_Jakarta_Sans'] leading-8 mb-8">Tambah Data Harga Sampah</h3>
|
||||
<form id="formTambah" onsubmit="submitForm(event)">
|
||||
<input type="hidden" id="edit_mode" value="false">
|
||||
<div class="flex flex-col gap-6">
|
||||
<!-- Row 1 -->
|
||||
<div class="flex flex-col gap-1.5">
|
||||
<label class="text-slate-800 text-base font-normal font-['Plus_Jakarta_Sans'] leading-6">
|
||||
Nama Subkategori Sampah
|
||||
<span class="text-red-500 text-sm font-semibold">*</span>
|
||||
</label>
|
||||
<input type="text" id="nama_subkategori" class="px-3.5 py-3 bg-white rounded-lg outline outline-1 outline-offset-[-1px] outline-gray-300 text-base font-['Plus_Jakarta_Sans'] placeholder:text-gray-400 focus:outline-2 focus:outline-green-800" placeholder="Nama Subkategori Sampah" required />
|
||||
</div>
|
||||
|
||||
<!-- Row 2 -->
|
||||
<div class="flex flex-col gap-1.5">
|
||||
<label class="text-slate-800 text-base font-normal font-['Plus_Jakarta_Sans'] leading-6">
|
||||
Harga (Rp)
|
||||
<span class="text-red-500 text-sm font-semibold">*</span>
|
||||
</label>
|
||||
<input type="number" id="harga" class="px-3.5 py-3 bg-white rounded-lg outline outline-1 outline-offset-[-1px] outline-gray-300 text-base font-['Plus_Jakarta_Sans'] placeholder:text-gray-400 focus:outline-2 focus:outline-green-800" placeholder="Harga (Rp)" required />
|
||||
</div>
|
||||
|
||||
<!-- Buttons -->
|
||||
<div class="flex gap-3 justify-end">
|
||||
<button type="button" class="px-8 py-2.5 bg-white rounded-full outline outline-1 outline-offset-[-1px] outline-gray-300 text-slate-800 text-base font-semibold font-['Plus_Jakarta_Sans'] leading-6 hover:bg-gray-50" onclick="closeModal()">
|
||||
Batal
|
||||
</button>
|
||||
<button type="submit" class="px-8 py-2.5 bg-green-800 rounded-full text-white text-base font-semibold font-['Plus_Jakarta_Sans'] leading-6 hover:bg-green-900">
|
||||
Simpan
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<form method="dialog" class="modal-backdrop">
|
||||
<button>close</button>
|
||||
</form>
|
||||
</dialog>
|
||||
<!-- /modal tambah/edit -->
|
||||
|
||||
<div class="h-6"></div>
|
||||
|
||||
<div class="card bg-white shadow-sm">
|
||||
<div class="card-body p-2">
|
||||
<div class="w-full overflow-x-auto">
|
||||
<table class="table-zebra table w-full" id="example">
|
||||
<!-- head -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-[10%]">No</th>
|
||||
<th class="w-[60%]">Nama Subkategori Sampah</th>
|
||||
<th class="w-[20%]">Harga (Rp)</th>
|
||||
<th class="w-[10%]">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
<script src="https://cdn.datatables.net/2.3.4/js/dataTables.js"></script>
|
||||
<script src="/plugins/datatables/dataTables.tailwindcss.js"></script>
|
||||
<script type="text/javascript">
|
||||
var table;
|
||||
|
||||
$(document).ready(function () {
|
||||
table = new DataTable('#example', {
|
||||
ajax: '/Main/HargaSampah/Table',
|
||||
scrollX: true,
|
||||
autoWidth: false,
|
||||
initComplete: function () {
|
||||
$('div.dt-scroll-body thead').css('visibility', 'collapse');
|
||||
},
|
||||
columns: [
|
||||
{ data: null, render: (d, t, r, m) => m.row + 1, orderable: false, searchable: false },
|
||||
{ data: 'nama_subkategori' },
|
||||
{
|
||||
data: 'harga',
|
||||
render: function(data) {
|
||||
return new Intl.NumberFormat('id-ID').format(data);
|
||||
}
|
||||
},
|
||||
{ data: 'aksi' },
|
||||
]
|
||||
});
|
||||
|
||||
// Delete button handler
|
||||
$('#example').on('click', '.p-2.bg-red-500', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
Swal.fire({
|
||||
title: 'Anda yakin ingin menghapus data ini?',
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Ya',
|
||||
cancelButtonText: 'Tidak',
|
||||
buttonsStyling: false,
|
||||
customClass: {
|
||||
confirmButton: 'btn bg-green-800 text-white hover:bg-green-900 px-8 py-2 rounded-full mr-2',
|
||||
cancelButton: 'btn bg-white text-gray-500 hover:bg-gray-50 px-8 py-2 rounded-full border border-gray-300',
|
||||
},
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
// TODO: Implement actual delete API call
|
||||
Swal.fire({
|
||||
title: 'Berhasil!',
|
||||
text: 'Data berhasil dihapus.',
|
||||
icon: 'success',
|
||||
confirmButtonText: 'OK',
|
||||
buttonsStyling: false,
|
||||
customClass: {
|
||||
confirmButton: 'btn bg-green-800 text-white hover:bg-green-900 px-4 py-2 rounded-full',
|
||||
},
|
||||
}).then(() => {
|
||||
// Reload table
|
||||
table.ajax.reload();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Edit button handler
|
||||
$('#example').on('click', '.p-2.bg-amber-500', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
// Get row data
|
||||
var row = table.row($(this).parents('tr')).data();
|
||||
|
||||
// Set edit mode
|
||||
$('#edit_mode').val('true');
|
||||
$('#modal_title').text('Edit Data Harga Sampah');
|
||||
|
||||
// Populate form with row data
|
||||
$('#nama_subkategori').val(row.nama_subkategori);
|
||||
$('#harga').val(row.harga);
|
||||
|
||||
// Open modal
|
||||
modal_tambah.showModal();
|
||||
});
|
||||
});
|
||||
|
||||
function closeModal() {
|
||||
// Reset form
|
||||
$('#formTambah')[0].reset();
|
||||
$('#edit_mode').val('false');
|
||||
$('#modal_title').text('Tambah Data Harga Sampah');
|
||||
|
||||
// Close modal
|
||||
modal_tambah.close();
|
||||
}
|
||||
|
||||
function submitForm(e) {
|
||||
e.preventDefault();
|
||||
|
||||
var isEditMode = $('#edit_mode').val() === 'true';
|
||||
|
||||
// TODO: Implement form submission logic
|
||||
Swal.fire({
|
||||
title: 'Berhasil!',
|
||||
text: isEditMode ? 'Data berhasil diperbarui' : 'Data berhasil ditambahkan',
|
||||
icon: 'success',
|
||||
confirmButtonText: 'OK',
|
||||
buttonsStyling: false,
|
||||
customClass: {
|
||||
confirmButton: 'btn bg-green-800 text-white hover:bg-green-900 px-4 py-2 rounded-full',
|
||||
},
|
||||
}).then(() => {
|
||||
closeModal();
|
||||
|
||||
// Reload table
|
||||
table.ajax.reload();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
<!-- Data -->
|
||||
<li>
|
||||
<details @(new[] { "Nasabah", "BankSampahInduk", "Aktivitas" }.Contains(controller) ? "open" : "")>
|
||||
<details @(new[] { "Nasabah", "BankSampahInduk", "Aktivitas", "HargaSampah" }.Contains(controller) ? "open" : "")>
|
||||
<summary>
|
||||
<i class="ph ph-database me-2 text-lg"></i>
|
||||
Data
|
||||
|
|
@ -85,6 +85,7 @@
|
|||
<li><a asp-controller="Nasabah" class="@(controller == "Nasabah" ? "menu-active" : "")">Nasabah</a></li>
|
||||
<li><a asp-controller="BankSampahInduk" class="@(controller == "BankSampahInduk" ? "menu-active" : "")">Bank Sampah Induk</a></li>
|
||||
<li><a asp-controller="Aktivitas" class="@(controller == "Aktivitas" ? "menu-active" : "")">Aktivitas</a></li>
|
||||
<li><a asp-controller="HargaSampah" class="@(controller == "HargaSampah" ? "menu-active" : "")">Harga Sampah</a></li>
|
||||
</ul>
|
||||
</details>
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue