@unless($this->hideHeader)
@foreach($this->columns as $index => $column)
@if($hideable === 'inline')
@include('datatables::header-inline-hide', ['column' => $column, 'sort' => $sort])
@elseif($column['type'] === 'checkbox')
@unless($column['hidden'])
@endunless
@else
@include('datatables::header-no-hide', ['column' => $column, 'sort' => $sort])
@endif
@endforeach
@endunless
@foreach($this->columns as $index => $column)
@if($column['hidden'])
@if($hideable === 'inline')
@endif
@elseif($column['type'] === 'checkbox')
@include('datatables::filters.checkbox')
@elseif($column['type'] === 'label')
{{ $column['label'] ?? '' }}
@else
@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
@foreach($this->results as $row)
@foreach($this->columns as $column)
@if($column['hidden'])
@if($hideable === 'inline')
@endif
@elseif($column['type'] === 'checkbox')
@include('datatables::checkbox', ['value' => $row->checkbox_attribute])
@elseif($column['type'] === 'label')
@include('datatables::label')
@else
{!! $row->{$column['name']} !!}
@endif
@endforeach
@endforeach
@if ($this->hasSummaryRow())
@foreach($this->columns as $column)
@unless($column['hidden'])
@if ($column['summary'])
{{ $this->summarize($column['name']) }}
@else
@endif
@endunless
@endforeach
@endif