@if($beforeTableSlot)
@include($beforeTableSlot)
@endif
@if($this->searchableColumns()->count())
@endif
@if($exportable)
@endif @if($hideable === 'select') @include('datatables::hide-column-multiselect') @endif
@if($hideable === 'buttons')
@foreach($this->columns as $index => $column) @endforeach
@endif
@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'])
{{ count($selected) }}
@endunless @else @include('datatables::header-no-hide', ['column' => $column, 'sort' => $sort]) @endif @endforeach
@foreach($this->columns as $index => $column) @if($column['hidden']) @if($hideable === 'inline')
@endif @elseif($column['type'] === 'checkbox')
SELECT ALL
results->total()) checked @endif class="form-checkbox mt-1 h-4 w-4 text-blue-600 transition duration-150 ease-in-out" />
@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
@endif @forelse($this->results as $result)
@foreach($this->columns as $column) @if($column['hidden']) @if($hideable === 'inline')
@endif @elseif($column['type'] === 'checkbox') @include('datatables::checkbox', ['value' => $result->checkbox_attribute]) @else
{!! $result->{$column['name']} !!}
@endif @endforeach
@empty

{{ __("There's Nothing to show at the moment") }}

@endforelse
@unless($this->hidePagination)
{{-- check if there is any data --}} @if(count($this->results))
{{ $this->results->links('datatables::tailwind-simple-pagination') }}
{{__('Results')}} {{ $this->results->firstItem() }} - {{ $this->results->lastItem() }} {{__('of')}} {{ $this->results->total() }}
@endif
@endif
@if($afterTableSlot)
@include($afterTableSlot)
@endif