65 lines
2.0 KiB
Plaintext
65 lines
2.0 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Potensi Rumah";
|
|
}
|
|
|
|
<div class="flex flex-col gap-2 md:flex-row md:justify-between md:gap-0">
|
|
<div class="prose">
|
|
<span class="text-xl font-semibold text-gray-900 font-['Plus_Jakarta_Sans']">
|
|
Potensi Rumah
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="h-6"></div>
|
|
|
|
<div class="card bg-white shadow-sm">
|
|
<div class="card-body p-2">
|
|
<div class="w-full overflow-x-auto">
|
|
<table class="table-zebra table w-full" id="example">
|
|
<!-- head -->
|
|
<thead>
|
|
<tr>
|
|
<th class="w-[5%]">No</th>
|
|
<th class="w-[15%]">RT</th>
|
|
<th class="w-[15%]">RW</th>
|
|
<th class="w-[12%]">Alamat</th>
|
|
<th class="w-[12%]">Kota</th>
|
|
<th class="w-[10%]">Nama Pemilik</th>
|
|
<th class="w-[10%]">Bangun ID</th>
|
|
<th class="w-[10%]">Potensi Nasabah</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<script type="text/javascript">
|
|
var table;
|
|
|
|
$(document).ready(function () {
|
|
table = new DataTable('#example', {
|
|
ajax: '/Data/PotensiRumah/Table',
|
|
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: 'rt' },
|
|
{ data: 'rw' },
|
|
{ data: 'alamat' },
|
|
{ data: 'kota' },
|
|
{ data: 'nama_pemilik' },
|
|
{ data: 'bangun_id' },
|
|
{ data: 'potensi_nasabah' },
|
|
]
|
|
});
|
|
});
|
|
</script>
|
|
}
|