@php $dtColumns = collect($columns)->map(function ($c, $index) { return [ 'data' => $c['key'], 'name' => $c['key'], 'orderable' => $c['orderable'] ?? true, 'searchable' => $c['searchable'] ?? true, 'visible' => $c['visible'] ?? true, 'key' => $c['key'], 'label' => $c['label'], ]; })->values(); @endphp
| {{ $col['label'] }} | @endforeach
|---|
Drag to reorder columns