@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
@endif
@foreach ($columns as $col) @endforeach @foreach ($columns as $col) @endforeach
@if ($col['key'] === 'checkbox') {!! $col['label'] !!} @else {{ $col['label'] }} @endif @if ($col['key'] !== 'checkbox' && ($col['orderable'] ?? true))
@endif
@push('custom-scripts') @endpush