@once @endonce @php $customBlocks = $getCustomBlocks(); $groupedCustomBlocks = $getGroupedCustomBlocks(); $extraAttributeBag = $getExtraAttributeBag(); $fieldWrapperView = $getFieldWrapperView(); $id = $getId(); $isDisabled = $isDisabled(); $label = $getLabel(); $livewireKey = $getLivewireKey(); $key = $getKey(); $mergeTags = $getMergeTags(); $statePath = $getStatePath(); $mentions = $getMentionsForJs(); $toolbarButtons = $getToolbarButtons(); $tools = $getTools(); $floatingToolbars = $getFloatingToolbars(); $linkProtocols = $getLinkProtocols(); $fileAttachmentsMaxSize = $getFileAttachmentsMaxSize(); $fileAttachmentsAcceptedFileTypes = $getFileAttachmentsAcceptedFileTypes(); @endphp @if ((! $isDisabled) && filled($toolbarButtons)) @foreach ($toolbarButtons as $button => $buttonGroup) @foreach ($buttonGroup as $button) @if (is_string($button)) {{ $tools[$button] ?? throw new LogicException("Toolbar button [{$button}] cannot be found.") }} @else {{ $button }} @endif @endforeach @endforeach @endif {{ \Filament\Support\generate_loading_indicator_html() }} {{ $getUploadingFileMessage() }} class(['fi-fo-rich-editor-main']) }} > @foreach ($floatingToolbars as $nodeName => $buttons) @foreach ($buttons as $button) @if (is_string($button)) {{ $tools[$button] }} @else {{ $button }} @endif @endforeach @endforeach @if (! $isDisabled) {{ __('filament-forms::components.rich_editor.tools.custom_blocks') }} {{ \Filament\Support\generate_icon_html(\Filament\Support\Icons\Heroicon::XMark, alias: \Filament\Forms\View\FormsIconAlias::COMPONENTS_RICH_EDITOR_PANELS_CUSTOM_BLOCKS_CLOSE_BUTTON) }} @foreach ($groupedCustomBlocks as $customBlockGroupLabel => $groupBlocks) @if (filled($customBlockGroupLabel)) {{ $customBlockGroupLabel }} @endif @foreach ($groupBlocks as $block) @php $blockId = $block::getId(); @endphp {{ \Filament\Support\generate_loading_indicator_html((new \Illuminate\View\ComponentAttributeBag([ 'x-show' => 'isLoading', ]))) }} {{ $block::getLabel() }} @endforeach @endforeach {{ __('filament-forms::components.rich_editor.tools.merge_tags') }} {{ \Filament\Support\generate_icon_html(\Filament\Support\Icons\Heroicon::XMark, alias: \Filament\Forms\View\FormsIconAlias::COMPONENTS_RICH_EDITOR_PANELS_MERGE_TAGS_CLOSE_BUTTON) }} @foreach ($mergeTags as $tagId => $tagLabel) {{ $tagLabel }} @endforeach @endif
{{ __('filament-forms::components.rich_editor.tools.custom_blocks') }}
{{ __('filament-forms::components.rich_editor.tools.merge_tags') }}