{{-- Server-side DataTable for an admin list page. Include after partials/crud-table-js. Params: $tableId, $url, $columns (DataTables column defs), $order (optional), $pageLength (optional). Filters: any [data-filter="name"] input/select inside the same .card is sent as `name` and reloads the table on change; an input[data-table-search] (or #tableSearch) in the card drives the search. --}} @php $tableConfig = [ 'id' => $tableId, 'url' => $url, 'columns' => $columns, 'order' => $order ?? [[0, 'desc']], 'pageLength' => $pageLength ?? 25, ]; @endphp