68 lines
2.1 KiB
Plaintext
68 lines
2.1 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Checklist Harian";
|
|
}
|
|
|
|
<div class="breadcrumbs text-sm">
|
|
<ul>
|
|
<li class="text-gray-500"><a>Data Kecamatan</a></li>
|
|
<li>Checklist Harian</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Header -->
|
|
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
|
<div class="prose">
|
|
<h3 class="mb-2">Checklist Harian</h3>
|
|
</div>
|
|
<div class="justify-self-end lg:self-center">
|
|
@* <a class="btn rounded-full bg-white" href="#">
|
|
<span class="icon icon-fill me-2">filter_list</span>
|
|
Filter
|
|
</a> *@
|
|
</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-[50%]">Kecamatan</th>
|
|
<th class="w-[15%]">Total Checklist</th>
|
|
<th class="w-[15%]">Checklist Terverifikasi</th>
|
|
<th class="w-[15%]">Belum Terverifikasi</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>
|
|
<script type="text/javascript">
|
|
var table;
|
|
|
|
$(document).ready(function () {
|
|
table = new DataTable('#example', {
|
|
ajax: '@Url.Action("Table", "DataKecamatanChecklistHarian")',
|
|
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: 'kecamatan' },
|
|
{ data: 'total_checklist' },
|
|
{ data: 'checklist_terverifikasi' },
|
|
{ data: 'belum_terverifikasi' },
|
|
]
|
|
});
|
|
});
|
|
</script>
|