@props(['id', 'columns', 'ajax', 'bulkDeleteUrl' => null]) @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(); @endphp @if($bulkDeleteUrl)
0 items selected
Delete Selected
{{-- Bulk Delete Confirmation Modal (Bootstrap 5) --}} @endif
{{-- Loading Process Indicator --}} @foreach($columns as $col) @endforeach @foreach($columns as $col) @endforeach {{-- DataTables will populate this --}}
@if($col['key'] === 'checkbox') {!! $col['label'] !!} @else {{ $col['label'] }} @endif @if($col['key'] !== 'checkbox' && ($col['orderable'] ?? true))
@endif
@if(($col['searchable'] ?? true))
@endif
@push('custom-scripts') @endpush