79 lines
2.5 KiB
Plaintext
79 lines
2.5 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Data Rumah";
|
|
}
|
|
|
|
<div class="breadcrumbs text-sm">
|
|
<ul>
|
|
<li class="text-gray-500"><a>Data Rumah</a></li>
|
|
<li><a>Rumah</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Header -->
|
|
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
|
<div class="prose">
|
|
<h3 class="mb-2">Rumah</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-[5%]">RT</th>
|
|
<th class="w-[5%]">RW</th>
|
|
<th class="w-[35%] whitespace-normal">Alamat</th>
|
|
<th class="w-[15%]">Kota</th>
|
|
<th class="w-[10%]">Pemilik Rumah</th>
|
|
<th class="w-[10%]">Status Rumah Memilah</th>
|
|
<th class="w-[10%]">Status Nasabah Bank Sampah</th>
|
|
<th class="w-[5%]">Aksi</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", "DataRumahRumah")',
|
|
scrollX: true,
|
|
autoWidth: true,
|
|
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: 'rt' },
|
|
{ data: 'rw' },
|
|
{ data: 'alamat' },
|
|
{ data: 'kota' },
|
|
{ data: 'pemilik_rumah' },
|
|
{ data: 'status_rumah_memilah' },
|
|
{ data: 'status_nasabah_bank_sampah' },
|
|
{ data: 'aksi' },
|
|
],
|
|
"columnDefs": [
|
|
{ "className": "whitespace-normal", "targets": 3 }
|
|
]
|
|
});
|
|
});
|
|
</script>
|