@php use Filament\Actions\View\ActionsRenderHook; use Filament\Support\Facades\FilamentView; $modalConfig = [ 'alignment' => $chatterAction->getModalAlignment(), 'autofocus' => $chatterAction->isModalAutofocused(), 'closeButton' => $chatterAction->hasModalCloseButton(), 'closeByClickingAway' => $chatterAction->isModalClosedByClickingAway(), 'closeByEscaping' => $chatterAction->isModalClosedByEscaping(), 'description' => $chatterAction->getModalDescription(), 'extraAttributes' => $chatterAction->getExtraModalWindowAttributeBag(), 'footerActions' => $chatterAction->getVisibleModalFooterActions(), 'footerActionsAlignment' => $chatterAction->getModalFooterActionsAlignment(), 'heading' => $chatterAction->getModalHeading(), 'icon' => $chatterAction->getModalIcon(), 'iconColor' => $chatterAction->getModalIconColor(), 'id' => "fi-{$this->getId()}-action-{$chatterAction->getNestingIndex()}", 'slideOver' => $chatterAction->isModalSlideOver(), 'stickyFooter' => $chatterAction->isModalFooterSticky(), 'stickyHeader' => $chatterAction->isModalHeaderSticky(), 'width' => $chatterAction->getModalWidth(), 'wireKey' => "{$this->getId()}.actions.{$chatterAction->getName()}.modal", 'submitAction' => $chatterAction->hasFormWrapper() ? $chatterAction->getLivewireCallMountedActionName() : null, ]; @endphp
@if ($modalConfig['icon'])
{{ \Filament\Support\generate_icon_html($modalConfig['icon'], size: \Filament\Support\Enums\IconSize::Large) }}
@endif

{{ $modalConfig['heading'] }}

@if ($modalConfig['description'])

{{ $modalConfig['description'] }}

@endif
@livewire('chatter-header-actions', [ 'record' => $record, 'resourceClass' => $resourceClass, 'messageMailViewPath' => $messageMailViewPath, 'activityPlans' => $activityPlans, 'chatterAction' => $chatterAction, ])
{{ FilamentView::renderHook(ActionsRenderHook::MODAL_CUSTOM_CONTENT_BEFORE, scopes: static::class, data: ['action' => $chatterAction]) }} {{ $chatterAction->getModalContent() }} {{ FilamentView::renderHook(ActionsRenderHook::MODAL_CUSTOM_CONTENT_AFTER, scopes: static::class, data: ['action' => $chatterAction]) }} @if ($this->mountedActionHasSchema(mountedAction: $chatterAction)) {{ FilamentView::renderHook(ActionsRenderHook::MODAL_SCHEMA_BEFORE, scopes: static::class, data: ['action' => $chatterAction]) }} {{ $this->getMountedActionSchema(mountedAction: $chatterAction) }} {{ FilamentView::renderHook(ActionsRenderHook::MODAL_SCHEMA_AFTER, scopes: static::class, data: ['action' => $chatterAction]) }} @endif {{ FilamentView::renderHook(ActionsRenderHook::MODAL_CUSTOM_CONTENT_FOOTER_BEFORE, scopes: static::class, data: ['action' => $chatterAction]) }} {{ $chatterAction->getModalContentFooter() }} {{ FilamentView::renderHook(ActionsRenderHook::MODAL_CUSTOM_CONTENT_FOOTER_AFTER, scopes: static::class, data: ['action' => $chatterAction]) }}