bps-rw/Views/LaporanRwRw/Index.cshtml

65 lines
1.9 KiB
Plaintext

@{
ViewData["Title"] = "Laporan RW (RW)";
}
<div class="breadcrumbs text-sm mb-4">
<ul>
<li class="text-gray-500"><a>INPUT</a></li>
<li id="breadcrumb-active">Laporan RW</li>
</ul>
</div>
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-semibold text-gray-800">Data Input Laporan RW</h2>
<div class="flex items-center gap-3">
<!-- Add Button -->
<a href="#" class="btn bg-green-600 text-white rounded-full">
<span class="icon me-2">add</span>
Tambah
</a>
</div>
</div>
<div class="card bg-white shadow-sm">
<div class="card-body p-0">
<table class="table w-full" id="tableRw">
<thead>
<tr>
<th>No</th>
<th>Bulan</th>
<th>Jumlah Rumah Memilah</th>
<th>Status</th>
<th>Gambar</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('#tableRw', {
ajax: '@Url.Action("Table", "LaporanRwRw")',
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: 'bulan' },
{ data: 'rumah_aktif_memilah' },
{ data: 'status' },
{ data: 'gambar' }
]
});
});
</script>