@php use Filament\Actions\Action; use Filament\Support\Enums\Alignment; $fieldWrapperView = $getFieldWrapperView(); $items = $getItems(); $blockPickerBlocks = $getBlockPickerBlocks(); $blockPickerColumns = $getBlockPickerColumns(); $blockPickerWidth = $getBlockPickerWidth(); $hasBlockPreviews = $hasBlockPreviews(); $hasInteractiveBlockPreviews = $hasInteractiveBlockPreviews(); $addAction = $getAction($getAddActionName()); $addActionAlignment = $getAddActionAlignment(); $addBetweenAction = $getAction($getAddBetweenActionName()); $cloneAction = $getAction($getCloneActionName()); $collapseAllAction = $getAction($getCollapseAllActionName()); $editAction = $getAction($getEditActionName()); $expandAllAction = $getAction($getExpandAllActionName()); $deleteAction = $getAction($getDeleteActionName()); $moveDownAction = $getAction($getMoveDownActionName()); $moveUpAction = $getAction($getMoveUpActionName()); $reorderAction = $getAction($getReorderActionName()); $extraItemActions = $getExtraItemActions(); $isAddable = $isAddable(); $isCloneable = $isCloneable(); $isCollapsible = $isCollapsible(); $isDeletable = $isDeletable(); $isReorderableWithButtons = $isReorderableWithButtons(); $isReorderableWithDragAndDrop = $isReorderableWithDragAndDrop(); $collapseAllActionIsVisible = $isCollapsible && $collapseAllAction->isVisible(); $expandAllActionIsVisible = $isCollapsible && $expandAllAction->isVisible(); $key = $getKey(); $statePath = $getStatePath(); $blockLabelHeadingTag = $getHeadingTag(); $isBlockLabelTruncated = $isBlockLabelTruncated(); $labelBetweenItems = $getLabelBetweenItems(); @endphp
merge($getExtraAttributes(), escape: false) ->class([ 'fi-fo-builder', 'fi-collapsible' => $isCollapsible, ]) }} > @if ($collapseAllActionIsVisible || $expandAllActionIsVisible)
count($items) < 2, ]) > @if ($collapseAllActionIsVisible) {{ $collapseAllAction }} @endif @if ($expandAllActionIsVisible) {{ $expandAllAction }} @endif
@endif @if (count($items)) @endif @if ($isAddable && $addAction->isVisible()) {{ $addAction }} @endif