@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(), ])> @if (isset($__env->getSections()['main-table'])) {{-- Legacy override: a plugin or theme defined @section('main-table') with @parent before this view rendered. --}} @section('main-table') {!! $dataTable->table(compact('id', 'class'), false) !!} @show @else {{-- Per-table override slot. Dynamic section name keeps multi-table pages from clobbering each other. --}} {{-- NOTE: @parent does NOT work with dynamic section names; overrides must render the dataTable inline. --}} @if (isset($__env->getSections()['main-table-' . $id])) @yield('main-table-' . $id) @else {!! $dataTable->table(compact('id', 'class'), false) !!} @endif @endif
{!! 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