<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['name', 'id' => null, 'label' => null, 'value' => null, 'required' => false, 'placeholder' => null, 'type' => 'text', 'helpText' => null, 'disabled' => false, 'readonly' => false, 'autocomplete' => null]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['name', 'id' => null, 'label' => null, 'value' => null, 'required' => false, 'placeholder' => null, 'type' => 'text', 'helpText' => null, 'disabled' => false, 'readonly' => false, 'autocomplete' => null]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>
<?php ($controlId = $id ?: str_replace(['[', ']'], '_', $name)); ?>
<?php ($describedBy = $helpText ? $controlId.'_help' : null); ?>

<div <?php echo e($attributes->only('class')->merge(['class' => 'mb-3'])); ?>>
    <?php if($label): ?>
        <label for="<?php echo e($controlId); ?>" class="admin-form-label"><?php echo e($label); ?> <?php if($required): ?><span aria-hidden="true" class="admin-required">*</span><?php endif; ?></label>
    <?php endif; ?>
    <input id="<?php echo e($controlId); ?>" name="<?php echo e($name); ?>" type="<?php echo e($type); ?>" value="<?php echo e(old($name, $value)); ?>" placeholder="<?php echo e($placeholder); ?>" <?php if($required): echo 'required'; endif; ?> <?php if($disabled): echo 'disabled'; endif; ?> <?php if($readonly): echo 'readonly'; endif; ?> autocomplete="<?php echo e($autocomplete); ?>" aria-invalid="<?php echo e($errors->has($name) ? 'true' : 'false'); ?>" <?php if($describedBy): ?> aria-describedby="<?php echo e($describedBy); ?>" <?php endif; ?>
        <?php echo e($attributes->except('class')->merge(['class' => 'admin-form-control form-control'.($errors->has($name) ? ' is-invalid' : '')])); ?>>
    <?php if($helpText): ?><p id="<?php echo e($describedBy); ?>" class="admin-form-help"><?php echo e($helpText); ?></p><?php endif; ?>
    <?php if (isset($component)) { $__componentOriginal5998e4ce7fb1dc7393ccc9310b967138 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5998e4ce7fb1dc7393ccc9310b967138 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.validation-error','data' => ['name' => $name]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.validation-error'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($name)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5998e4ce7fb1dc7393ccc9310b967138)): ?>
<?php $attributes = $__attributesOriginal5998e4ce7fb1dc7393ccc9310b967138; ?>
<?php unset($__attributesOriginal5998e4ce7fb1dc7393ccc9310b967138); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5998e4ce7fb1dc7393ccc9310b967138)): ?>
<?php $component = $__componentOriginal5998e4ce7fb1dc7393ccc9310b967138; ?>
<?php unset($__componentOriginal5998e4ce7fb1dc7393ccc9310b967138); ?>
<?php endif; ?>
</div>
<?php /**PATH /Users/mac/Documents/e-com/resources/views/components/admin/text-input.blade.php ENDPATH**/ ?>