<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
<?php foreach($attributes->onlyProps([
    'label' => '',
    'name' => '',
    'id' => '',
    'value' => '',
    'required' => false,
    'autofocus' => false,
    'disabled' => false,
    'placeholder' => '',
    'variant' => 'primary',
    'autocomplete' => 'new-password',
]) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $attributes = $attributes->exceptProps([
    'label' => '',
    'name' => '',
    'id' => '',
    'value' => '',
    'required' => false,
    'autofocus' => false,
    'disabled' => false,
    'placeholder' => '',
    'variant' => 'primary',
    'autocomplete' => 'new-password',
]); ?>
<?php foreach (array_filter(([
    'label' => '',
    'name' => '',
    'id' => '',
    'value' => '',
    'required' => false,
    'autofocus' => false,
    'disabled' => false,
    'placeholder' => '',
    'variant' => 'primary',
    'autocomplete' => 'new-password',
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $__defined_vars = get_defined_vars(); ?>
<?php foreach ($attributes as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
} ?>
<?php unset($__defined_vars); ?>

<?php
    $palette = [
        'primary' => 'input-primary',
        'secondary' => 'input-secondary',
    ][$variant] ?? '';
?>

<label <?php echo e($attributes->merge(['class' => "input-main $palette"])); ?>>
    <p class="label"><?php echo e($label); ?></p>

    <div x-data="{ show: false }" class="relative">
        <input
            :type="show ? 'text' : 'password'"
            type="password"
            name="<?php echo e($name); ?>"
            id="<?php echo e($id); ?>"
            class="form-input pr-10"
            value="<?php echo e(old($name, $value)); ?>"
            placeholder="<?php echo e($placeholder); ?>"
            autocomplete="<?php echo e($autocomplete); ?>"
            <?php if($required): ?> required <?php endif; ?>
            <?php if($autofocus): ?> autofocus <?php endif; ?>
            <?php if($disabled): ?> disabled <?php endif; ?>
        />

        <button type="button" class="absolute right-2 top-1/2 -translate-y-1/2 text-gray-500"
            @click="show = !show" tabindex="-1">
            <span x-show="!show">
                <?php if (isset($component)) { $__componentOriginal95d0561691888b1ea30e4dcd205f4e99 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal95d0561691888b1ea30e4dcd205f4e99 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icons.eye','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('icons.eye'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal95d0561691888b1ea30e4dcd205f4e99)): ?>
<?php $attributes = $__attributesOriginal95d0561691888b1ea30e4dcd205f4e99; ?>
<?php unset($__attributesOriginal95d0561691888b1ea30e4dcd205f4e99); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal95d0561691888b1ea30e4dcd205f4e99)): ?>
<?php $component = $__componentOriginal95d0561691888b1ea30e4dcd205f4e99; ?>
<?php unset($__componentOriginal95d0561691888b1ea30e4dcd205f4e99); ?>
<?php endif; ?>
            </span>
            <span x-show="show">
                <?php if (isset($component)) { $__componentOriginal8c9697ec016955f30d515eb37385ca9a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8c9697ec016955f30d515eb37385ca9a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icons.eye-slash','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('icons.eye-slash'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8c9697ec016955f30d515eb37385ca9a)): ?>
<?php $attributes = $__attributesOriginal8c9697ec016955f30d515eb37385ca9a; ?>
<?php unset($__attributesOriginal8c9697ec016955f30d515eb37385ca9a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8c9697ec016955f30d515eb37385ca9a)): ?>
<?php $component = $__componentOriginal8c9697ec016955f30d515eb37385ca9a; ?>
<?php unset($__componentOriginal8c9697ec016955f30d515eb37385ca9a); ?>
<?php endif; ?>
            </span>
        </button>
    </div>

    <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
        <span class="text-red-500 text-sm mt-2 block"><?php echo e($message); ?></span>
    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</label><?php /**PATH C:\laragon\www\housecontract\resources\views/components/controls/password.blade.php ENDPATH**/ ?>