<?php
    $fieldName = $name;
    $errorKey = $errorKey ?? $fieldName;
    $showMeter = $showMeter ?? false;
    $hasError = $errors->has($errorKey);
?>
<div
    class="rt-password-field <?php echo e($wrapperClass ?? 'mb-3'); ?>"
    data-rt-password-field
    <?php if($showMeter): ?> data-rt-password-meter="1" <?php endif; ?>
>
    <label for="<?php echo e($id); ?>" class="<?php echo e($labelClass ?? 'rt-auth-label'); ?>"><?php echo e($label); ?></label>
    <div class="rt-password-field__wrap position-relative">
        <input
            id="<?php echo e($id); ?>"
            type="password"
            class="form-control rt-password-field__input pe-5 <?php if($hasError): ?> is-invalid <?php endif; ?>"
            name="<?php echo e($name); ?>"
            <?php if(!empty($autocomplete)): ?> autocomplete="<?php echo e($autocomplete); ?>" <?php endif; ?>
            <?php if(($required ?? true)): ?> required <?php endif; ?>
            <?php if(!empty($placeholder)): ?> placeholder="<?php echo e($placeholder); ?>" <?php endif; ?>
            <?php if(isset($minlength)): ?>
                minlength="<?php echo e($minlength); ?>"
            <?php endif; ?>
        >
        <button
            type="button"
            class="rt-password-toggle"
            data-rt-password-toggle
            aria-label="<?php echo e(__('Mostrar contraseña')); ?>"
            aria-pressed="false"
        >
            <span class="rt-password-toggle__icon rt-password-toggle__icon--show" aria-hidden="true">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16" focusable="false">
                    <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"/>
                </svg>
            </span>
            <span class="rt-password-toggle__icon rt-password-toggle__icon--hide d-none" aria-hidden="true">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16" focusable="false">
                    <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457L13 8c-.722.364-1.612.858-2.68 1.207l1.149 1.149a8.002 8.002 0 0 1-2.09 1.882zM11.297 9.297l1.414 1.414L1.414 1.414 0 2.828l2.354 2.354C1.52 6.52 0 8 0 8s3 5.5 8 5.5c1.672 0 3.14-.38 4.38-.954l3.53 3.53 1.414-1.414L11.297 9.297zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z"/>
                </svg>
            </span>
        </button>
    </div>

    <?php if($showMeter): ?>
        <div class="rt-password-meter mt-2 small" data-rt-password-meter-block hidden>
            <span class="rt-password-meter__label" data-rt-password-meter-label></span>
        </div>
    <?php endif; ?>

    <?php if(empty($silentError)): ?>
        <?php $__errorArgs = [$errorKey];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <span class="invalid-feedback d-block" role="alert"><strong><?php echo e($message); ?></strong></span>
        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    <?php endif; ?>
</div>
<?php /**PATH /var/www/html/resources/views/partials/rt-password-field.blade.php ENDPATH**/ ?>