77 lines
2.6 KiB
Plaintext
77 lines
2.6 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Data Berat Sampah";
|
|
}
|
|
|
|
<div class="breadcrumbs text-sm">
|
|
<ul>
|
|
<li>Data Berat Sampah</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Header -->
|
|
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
|
<div class="prose">
|
|
<h3 class="mb-2">Data Berat Sampah</h3>
|
|
</div>
|
|
<div class="justify-self-end lg:self-center">
|
|
<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-8"></div>
|
|
|
|
<div class="card bg-white shadow-sm">
|
|
<div class="card-body p-0">
|
|
<table class="table-zebra table" id="example">
|
|
<thead>
|
|
<tr>
|
|
<th class="w-[5%]">No</th>
|
|
<th class="w-[10%]">Tanggal</th>
|
|
<th class="w-[20%]">Kelurahan</th>
|
|
<th class="w-[5%]">RW</th>
|
|
<th class="w-[10%]">Berat Mudah Terurai <br /> (Kg)</th>
|
|
<th class="w-[10%]">Berat Material Daur Ulang <br /> (Kg)</th>
|
|
<th class="w-[10%]">Berat B3 <br /> (Kg)</th>
|
|
<th class="w-[10%]">Timbulan <br /> (Kg)</th>
|
|
<th class="w-[10%]">Total Pengurangan Sampah <br /> (Kg)</th>
|
|
<th class="w-[10%]">Neraca Sampah <br /> (Kg)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://code.jquery.com/jquery-3.7.1.js"></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: '@Url.Action("Table", "DataBeratSampah")',
|
|
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: 'tanggal' },
|
|
{ data: 'kelurahan' },
|
|
{ data: 'rw' },
|
|
{ data: 'berat_mudah_terurai' },
|
|
{ data: 'berat_material_daur_ulang' },
|
|
{ data: 'berat_b3' },
|
|
{ data: 'timbulan' },
|
|
{ data: 'total_pengurangan_sampah' },
|
|
{ data: 'neraca_sampah' },
|
|
]
|
|
});
|
|
});
|
|
</script>
|