@php use Filament\Support\Enums\Alignment; use Illuminate\Contracts\Support\Htmlable; use Illuminate\Contracts\View\View; @endphp @props([ 'actions', 'alignment' => Alignment::Start, 'fullWidth' => false, ]) @if (($actions instanceof View) || ($actions instanceof Htmlable)) {{ $actions }} @elseif (is_array($actions)) @php $actions = array_filter( $actions, fn ($action): bool => $action->isVisible(), ); if (! $alignment instanceof Alignment) { $alignment = filled($alignment) ? (Alignment::tryFrom($alignment) ?? $alignment) : null; } @endphp @if (count($actions))