@php $fieldType = $type ?? ''; $fieldName = (string) ($name ?? ''); $isPasswordField = $fieldType === 'password' || str_contains($fieldName, 'password'); @endphp