69 lines
2.1 KiB
Plaintext
69 lines
2.1 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Data Berat Sampah Rw";
|
|
}
|
|
|
|
<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>
|
|
|
|
<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>No</th>
|
|
<th>Tanggal</th>
|
|
<th>RT</th>
|
|
<th>Berat Mudah Terurai (Kg)</th>
|
|
<th>Berat Material Daur Ulang (Kg)</th>
|
|
<th>Berat B3 (Kg)</th>
|
|
<th>Total Pengurangan (Kg)</th>
|
|
<th>Neraca Sampah (Kg)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<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>
|
|
<link href="https://cdn.jsdelivr.net/npm/tom-select@2.2.2/dist/css/tom-select.css" rel="stylesheet">
|
|
<script src="https://cdn.jsdelivr.net/npm/tom-select@2.2.2/dist/js/tom-select.complete.min.js"></script>
|
|
<script type="text/javascript">
|
|
var table;
|
|
|
|
$(document).ready(function () {
|
|
table = new DataTable('#example', {
|
|
ajax: '@Url.Action("Table", "DataBeratSampahRw")',
|
|
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 },
|
|
{ data: 'tanggal' },
|
|
{ data: 'rt' },
|
|
{ data: 'berat_mudah_terurai' },
|
|
{ data: 'berat_material_daur_ulang' },
|
|
{ data: 'berat_b3' },
|
|
{ data: 'total_pengurangan_sampah' },
|
|
{ data: 'neraca_sampah' },
|
|
]
|
|
});
|
|
});
|
|
</script>
|