@php use Filament\Support\Facades\FilamentView; $customBlocks = $getCustomBlocks(); $extraInputAttributeBag = $getExtraAttributeBag(); $fieldWrapperView = $getFieldWrapperView(); $id = $getId(); $isDisabled = $isDisabled(); $livewireKey = $getLivewireKey(); $key = $getKey(); $mergeTags = $getMergeTags(); $statePath = $getStatePath(); $tools = $getTools(); $toolbarButtons = $getToolbarButtons(); $floatingToolbars = $getFloatingToolbars(); @endphp
@if ((! $isDisabled) && filled($toolbarButtons))
@foreach ($toolbarButtons as $button => $buttonGroup)
@foreach ($buttonGroup as $button) {{ $tools[$button] ?? throw new Exception("Toolbar button [{$button}] cannot be found.") }} @endforeach
@endforeach
@endif
@foreach ($floatingToolbars as $nodeName => $buttons)
@foreach ($buttons as $button) {{ $tools[$button] }} @endforeach
@endforeach
@if (! $isDisabled)

{{ __('filament-forms::components.rich_editor.tools.custom_blocks') }}

@foreach ($customBlocks as $block) @php $blockId = $block::getId(); @endphp @endforeach

{{ __('filament-forms::components.rich_editor.tools.merge_tags') }}

@foreach ($mergeTags as $tag) @endforeach
@endif