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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['name' => 'search', 'id' => null, 'label' => 'Search', 'value' => null, 'placeholder' => 'Search…', 'loading' => false, 'helpText' => 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' => 'search', 'id' => null, 'label' => 'Search', 'value' => null, 'placeholder' => 'Search…', 'loading' => false, 'helpText' => 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 ?: $name); ?>
<div <?php echo e($attributes->only('class')->merge(['class'=>'admin-search-field'])); ?>>
 <?php if($label): ?><label class="admin-form-label" for="<?php echo e($controlId); ?>"><?php echo e($label); ?></label><?php endif; ?>
 <div class="admin-search-control"><input id="<?php echo e($controlId); ?>" name="<?php echo e($name); ?>" type="search" value="<?php echo e(old($name,$value)); ?>" placeholder="<?php echo e($placeholder); ?>" <?php echo e($attributes->except('class')->merge(['class'=>'admin-form-control'])); ?>><?php if($loading): ?><span class="spinner-border spinner-border-sm" aria-label="Loading"></span><?php endif; ?></div>
 <?php if($helpText): ?><p class="admin-form-help"><?php echo e($helpText); ?></p><?php endif; ?>
</div>
<?php /**PATH /Users/mac/Documents/e-com/resources/views/components/admin/search-input.blade.php ENDPATH**/ ?>