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