@foreach($this->columns as $index => $column)
@if($column['hidden'])
@if($hideable === 'inline')
@endif
@elseif($column['type'] === 'checkbox')
@elseif($column['type'] === 'label')
{{ $column['label'] ?? '' }}
@isset($column['filterable'])
@if( is_iterable($column['filterable']) )
@include('datatables::filters.select', ['index' => $index, 'name' => $column['label'], 'options' => $column['filterable']])
@else
@include('datatables::filters.' . ($column['filterView'] ?? $column['type']), ['index' => $index, 'name' => $column['label']])
@endif
@endisset
@endif
@endforeach