@php $items = $getItems(); $tableColumns = $getTableColumns(); $extraActions = $getExtraItemActions(); $hasExtraActions = ! empty($extraActions); $hasColumnManager = $hasColumnManager(); $attributes = $getExtraAttributeBag() ->class(['fi-fo-table-repeater', 'fi-compact']); @endphp @if (empty($items)) @php $tooltip = $getEmptyTooltip(); $attributes = $attributes->merge([ 'x-tooltip' => filled($tooltip) ? '{content: ' . Js::from($tooltip) . ', theme: $store.theme, allowHTML: ' . Js::from($tooltip instanceof \Illuminate\Contracts\Support\Htmlable) . '}' : null, ], escape: false); @endphp
@if (filled($placeholder = $getPlaceholder()))

{{ $placeholder }}

@endif
@else
@foreach ($tableColumns as $column) @php $columnWidth = $column->getWidth(); $columnAlignment = $column->getAlignment(); $alignmentClass = $columnAlignment instanceof \Filament\Support\Enums\Alignment ? 'fi-align-' . $columnAlignment->value : $columnAlignment; @endphp @endforeach @if ($hasColumnManager) @endif @foreach ($items as $index => $item) @php $visibleColumns = collect($tableColumns) ->mapWithKeys(fn ($col) => [$col->getName() => $col]); @endphp @foreach ($item->getComponents(withHidden: true) as $component) @continue(! ($component instanceof \Filament\Schemas\Components\Component)) @continue(! $visibleColumns->has($component->getName())) @endforeach @if ($hasExtraActions) @endif @endforeach
filled($columnWidth), ]) > @if (! $column->isHeaderLabelHidden()) {{ $column->getLabel() }} @else {{ $column->getLabel() }} @endif {!! $getColumnManagerTriggerAction()->toHtml() !!}
{!! $component->toHtml() !!}
@foreach ($extraActions as $action) @php $action = $action(['item' => $index]); @endphp
{!! $action->toHtml() !!}
@endforeach
@endif