@if ($this instanceof \Filament\Actions\Contracts\HasActions && (! $this->hasActionsModalRendered))
@php
$this->hasActionsModalRendered = true;
@endphp
@endif
@if ($this instanceof \Filament\Tables\Contracts\HasTable && (! $this->hasTableModalRendered))
@php
$this->hasTableModalRendered = true;
@endphp
@endif
@if ($this instanceof \Filament\Infolists\Contracts\HasInfolists && (! $this->hasInfolistsModalRendered))
@php
$this->hasInfolistsModalRendered = true;
@endphp
@endif
@if (! $this->hasFormsModalRendered)
@php
$action = $this->getMountedFormComponentAction();
@endphp
@php
$this->hasFormsModalRendered = true;
@endphp
@endif