update dns

This commit is contained in:
pbao9
2026-02-04 09:07:44 +07:00
parent 0dbd9bfebe
commit 064d23d822
10 changed files with 153 additions and 164 deletions
+16 -12
View File
@@ -1,15 +1,15 @@
@props(['id', 'columns', 'ajax'])
@php
$dtColumns = collect($columns)->map(function ($c) {
return [
'data' => $c['key'],
'name' => $c['key'],
'orderable' => $c['orderable'] ?? true,
'searchable' => $c['searchable'] ?? true,
'className' => $c['className'] ?? '',
];
})->values();
$dtColumns = collect($columns)->map(function ($c) {
return [
'data' => $c['key'],
'name' => $c['key'],
'orderable' => $c['orderable'] ?? true,
'searchable' => $c['searchable'] ?? true,
'className' => $c['className'] ?? '',
];
})->values();
@endphp
<div class="data-table-wrapper rounded-3 overflow-hidden border border-light">
<table id="{{ $id }}" class="table table-hover align-middle mb-0 bg-white"
@@ -70,8 +70,8 @@
next: '<span class="d-flex align-items-center justify-content-center"><i data-lucide="chevron-right" width="16" height="16"></i></span>',
previous: '<span class="d-flex align-items-center justify-content-center"><i data-lucide="chevron-left" width="16" height="16"></i></span>'
},
zeroRecords: "No matching records found",
emptyTable: "No data available in table"
zeroRecords: '<div class="d-flex flex-column align-items-center justify-content-center py-5"><div class="text-secondary mb-3"><i data-lucide="inbox" width="28" height="28" stroke-width="1.5"></i></div><h6 class="text-secondary fw-medium">No matching records found</h6></div>',
emptyTable: '<div class="d-flex flex-column align-items-center justify-content-center py-5"><div class="text-secondary mb-3"><i data-lucide="inbox" width="28" height="28" stroke-width="1.5"></i></div><h6 class="text-secondary fw-medium">No data available</h6></div>'
},
dom: "<'row p-3'<'col-sm-12'tr>>" +
"<'row px-3 pb-3 pt-1 align-items-center'<'col-sm-12 col-md-5 text-muted small'i><'col-sm-12 col-md-7 d-flex align-items-center justify-content-end gap-2'lp>>",
@@ -124,7 +124,7 @@
table.column(columnIndex).search(this.value).draw();
});
});
</script>
</script>
<style>
/* Custom SAAS DataTable Styles */
@@ -150,6 +150,10 @@
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.data-table-wrapper .table td:not(:last-child) {
border-right: 1px solid #f1f5f9;
}
/* Sticky for second row (filter inputs) if present */
.data-table-wrapper .table thead tr:nth-child(2) th {
top: 45px;