138 lines
4.9 KiB
Plaintext
138 lines
4.9 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Volume Timbulan Sampah";
|
|
}
|
|
|
|
<div class="breadcrumbs text-sm">
|
|
<ul>
|
|
<li class="text-gray-500"><a>Laporan</a></li>
|
|
<li>Volume Timbulan Sampah</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Header -->
|
|
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
|
<div class="prose">
|
|
<h3 class="mb-2">Volume Timbulan Sampah</h3>
|
|
</div>
|
|
<div class="flex justify-end items-center gap-2">
|
|
<a class="btn btn-primary text-white rounded-full" href="#">
|
|
<span class="icon icon-fill me-2">download</span>
|
|
Download
|
|
</a>
|
|
<button class="btn rounded-full bg-white" onclick="modal_filter.showModal()">
|
|
<span class="icon icon-fill me-2">filter_list</span>
|
|
Filter
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="h-6"></div>
|
|
|
|
<!-- TABLE -->
|
|
<div class="card bg-white shadow-sm">
|
|
<div class="card-body p-0">
|
|
<table class="table table-zebra w-full" id="example">
|
|
<thead>
|
|
<tr>
|
|
<th class="w-[5%]">No</th>
|
|
<th class="w-[30%]">Wilayah</th>
|
|
<th class="w-[15%]">Mudah Terurai</th>
|
|
<th class="w-[15%]">Daur Ulang</th>
|
|
<th class="w-[15%]">B3</th>
|
|
<th class="w-[15%]">Residu</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Filter Modal -->
|
|
<dialog id="modal_filter" class="modal modal-bottom sm:modal-middle">
|
|
<div class="modal-box w-full sm:max-w-sm">
|
|
<div class="flex items-center justify-between mb-4">
|
|
<h3 class="text-lg font-bold">Filter Data</h3>
|
|
<button type="button" class="btn btn-sm btn-circle btn-ghost" onclick="modal_filter.close()">✕</button>
|
|
</div>
|
|
<form action="#" method="get">
|
|
<fieldset class="fieldset">
|
|
<legend class="fieldset-legend">Tahun</legend>
|
|
<select name="tahun" class="select w-full">
|
|
<option disabled selected>Pilih Tahun</option>
|
|
<option>2025</option>
|
|
<option>2024</option>
|
|
<option>2023</option>
|
|
<option>2022</option>
|
|
<option>2021</option>
|
|
</select>
|
|
</fieldset>
|
|
<fieldset class="fieldset max-w-sm">
|
|
<legend class="fieldset-legend">Bulan</legend>
|
|
<select id="filter-bulan" class="w-full">
|
|
<option value="">Pilih Bulan</option>
|
|
<option value="Januari">Januari</option>
|
|
<option value="Februari">Februari</option>
|
|
<option value="Maret">Maret</option>
|
|
<option value="Apri">April</option>
|
|
<option value="Mei">Mei</option>
|
|
</select>
|
|
</fieldset>
|
|
<div class="modal-action">
|
|
<button type="reset" class="btn" onclick="modal_filter.close()">Bersihkan</button>
|
|
<button type="submit" class="btn btn-neutral">Terapkan Filter</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</dialog>
|
|
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/css/tom-select.css" rel="stylesheet">
|
|
<script src="/lib/jquery/jquery-3.7.1.js"></script>
|
|
<script src="/lib/datatables/dataTables.js"></script>
|
|
<script src="/plugins/datatables/dataTables.tailwindcss.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/js/tom-select.complete.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
new DataTable('#example', {
|
|
ajax: '@Url.Action("Table", "VolumeTimbulanSampah")',
|
|
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: 'wilayah' },
|
|
|
|
{
|
|
data: 'mudahTerurai',
|
|
render: data => data.toLocaleString("id-ID")
|
|
},
|
|
{
|
|
data: 'daurUlang',
|
|
render: data => data.toLocaleString("id-ID")
|
|
},
|
|
{
|
|
data: 'b3',
|
|
render: data => data.toLocaleString("id-ID")
|
|
},
|
|
{
|
|
data: 'residu',
|
|
render: data => data.toLocaleString("id-ID")
|
|
}
|
|
]
|
|
});
|
|
|
|
new TomSelect("#filter-bulan", {
|
|
closeAfterSelect: true,
|
|
maxItems: 1,
|
|
placeholder: "Pilih Bulan",
|
|
});
|
|
});
|
|
</script> |