@props([
'actions' => false,
'actionsPosition' => null,
'columns',
'extraHeadingColumn' => false,
'groupColumn' => null,
'groupsOnly' => false,
'placeholderColumns' => true,
'pluralModelLabel',
'recordCheckboxPosition' => null,
'records',
'selectionEnabled' => false,
])
@php
use Filament\Support\Enums\Alignment;
use Filament\Tables\Columns\Column;
use Filament\Tables\Enums\ActionsPosition;
use Filament\Tables\Enums\RecordCheckboxPosition;
if ($groupsOnly && $groupColumn) {
$columns = collect($columns)
->reject(fn (Column $column): bool => $column->getName() === $groupColumn)
->all();
}
$hasPageSummary = (! $groupsOnly) && $records instanceof \Illuminate\Contracts\Pagination\Paginator && $records->hasPages();
@endphp
@if ($hasPageSummary)
@php
$query = $this->getPageTableSummaryQuery();
$selectedState = $this->getTableSummarySelectedState($query)[0] ?? [];
@endphp
@endif
@php
$query = $this->getAllTableSummaryQuery();
$selectedState = $this->getTableSummarySelectedState($query)[0] ?? [];
@endphp
! $hasPageSummary,
])
/>