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