@if ($this instanceof \Filament\Actions\Contracts\HasActions && !$this->hasActionsModalRendered)
@foreach ($this->getMountedActions() as $action) @if (!$loop->last || $this->mountedActionShouldOpenModal()) {{ $action->toModalHtmlable() }} @endif @endforeach
@php $this->hasActionsModalRendered = true; @endphp @endif