@php use Filament\Support\Enums\Alignment; $isDisabled = $isDisabled(); $state = $getState(); $type = $getType(); $alignment = $getAlignment() ?? Alignment::Start; if (! $alignment instanceof Alignment) { $alignment = filled($alignment) ? (Alignment::tryFrom($alignment) ?? $alignment) : null; } @endphp