@props([ 'action', 'afterItem' => null, 'blocks', 'columns' => null, 'statePath', 'trigger', 'width' => null, ]) class(['fi-fo-builder-block-picker']) }} > {{ $trigger }} @foreach ($blocks as $block) @php $wireClickActionArguments = ['block' => $block->getName()]; if ($afterItem) { $wireClickActionArguments['afterItem'] = $afterItem; } $wireClickActionArguments = \Illuminate\Support\Js::from($wireClickActionArguments); $wireClickAction = "mountFormComponentAction('{$statePath}', '{$action->getName()}', {$wireClickActionArguments})"; @endphp {{ $block->getLabel() }} @endforeach