@php $containers = $getChildComponentContainers(); $isCloneable = $isCloneable(); $isItemCreationDisabled = $isItemCreationDisabled(); $isItemDeletionDisabled = $isItemDeletionDisabled(); $isItemMovementDisabled = $isItemMovementDisabled(); $headers = $getHeaders(); $columnWidths = $getColumnWidths(); $breakPoint = $getBreakPoint(); $hasContainers = count($containers) > 0; $hasHiddenHeader = $shouldHideHeader(); $hasActions = !$isItemMovementDisabled || !$isItemDeletionDisabled || $isCloneable; @endphp
merge($getExtraAttributes())->class([ 'filament-table-repeater-component space-y-6 relative', match ($breakPoint) { 'sm' => 'break-point-sm', 'lg' => 'break-point-lg', 'xl' => 'break-point-xl', '2xl' => 'break-point-2xl', default => 'break-point-md', }, ]) }}>
$hasContainers, 'sm:border sm:border-gray-300 dark:sm:border-gray-700' => !$hasContainers && $breakPoint === 'sm', 'md:border md:border-gray-300 dark:md:border-gray-700' => !$hasContainers && $breakPoint === 'md', 'lg:border lg:border-gray-300 dark:lg:border-gray-700' => !$hasContainers && $breakPoint === 'lg', 'xl:border xl:border-gray-300 dark:xl:border-gray-700' => !$hasContainers && $breakPoint === 'xl', '2xl:border 2xl:border-gray-300 dark:2xl:border-gray-700' => !$hasContainers && $breakPoint === '2xl', ])> $hasHiddenHeader, 'filament-table-repeater-header rounded-t-xl overflow-hidden' => !$hasHiddenHeader, 'border-b border-gray-300 dark:border-gray-700' => !$hasHiddenHeader, ])> @foreach ($headers as $key => $header) @endforeach @if ($hasActions) @endif @if (count($containers)) @foreach ($containers as $uuid => $row) config('forms.dark_mode'), ])> @foreach ($row->getComponents() as $cell) @if (!$cell instanceof \Filament\Forms\Components\Hidden && !$cell->isHidden()) @else {{ $cell }} @endif @endforeach @if ($hasActions) @endif @endforeach @else config('forms.dark_mode'), ])> @endif
$loop->first, 'ltr:rounded-tr-xl rtl:rounded-tl-xl' => $loop->last && !$hasActions, ]) @if ($columnWidths && isset($columnWidths[$key])) style="width: {{ $columnWidths[$key] }}" @endif> {{ $header }}
@unless ($isItemMovementDisabled)
@endunless @if ($isCloneable)
@endunless @unless ($isItemDeletionDisabled)
@endunless {{ __('filament-table-repeater::components.repeater.row_actions.label') }}
$cell->isLabelHidden(), ]) @if ($columnWidths && isset($columnWidths[$cell->getName()])) style="width: {{ $columnWidths[$cell->getName()] }}" @endif> {{ $cell }}
@unless ($isItemMovementDisabled) @endunless @if ($isCloneable) @endunless @unless ($isItemDeletionDisabled) @endunless
{{ $getEmptyLabel() ?? __('filament-table-repeater::components.repeater.empty.label') }}
@if (!$isItemCreationDisabled)
{{ $getCreateItemButtonLabel() }}
@endif