@php /** @var Botble\Table\Abstracts\TableAbstract $table */ @endphp @once @if ($randomHash = setting('datatables_random_hash')) @endif @endonce {!! apply_filters(BASE_FILTER_TABLE_BEFORE_RENDER, null, $table) !!}
@if ($table->hasFilters()) !$table->isFiltering(), 'display: block' => $table->isFiltering()]) > {!! $table->renderFilter() !!} @endif $table->hasBulkActions(), 'has-filter' => $table->hasFilters(), ])>
@if ($table->hasBulkActions()) @foreach ($table->getBulkActions() as $action) {!! $action !!} @endforeach @endif @if ($table->hasFilters()) {{ trans('core/table::table.filters') }} @endif
@foreach($table->getButtons() as $button) @if (Arr::get($button, 'extend') === 'collection') @else @endif @endforeach @foreach($table->getDefaultButtons() as $defaultButton) @if (is_string($defaultButton)) @switch($defaultButton) @case('reload') {{ trans('core/base::tables.reload') }} @break @case('export') @break @case('visibility') @break(! Auth::user() instanceof \Botble\ACL\Models\User || ! AdminHelper::isInAdmin(true)) @break @endswitch @endif @endforeach
$table->hasBulkActions(), 'table-has-filter' => $table->hasFilters(), ])> @section('main-table') {!! $dataTable->table(compact('id', 'class'), false) !!} @show
{!! apply_filters(BASE_FILTER_TABLE_AFTER_RENDER, null, $table) !!} @push('footer') @include('core/table::modal') {!! $dataTable->scripts() !!} {!! apply_filters(BASE_FILTER_TABLE_FOOTER_RENDER, null, $table) !!} @endpush