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

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

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, 'options' => [], 'value' => null, 'required' => false, 'placeholder' => null, 'helpText' => null, 'disabled' => false, 'searchable' => false]), '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)); ?>

<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 class="admin-required">*</span><?php endif; ?></label>
    <?php endif; ?>
    <select id="<?php echo e($controlId); ?>" name="<?php echo e($name); ?>" <?php if($required): echo 'required'; endif; ?> <?php if($disabled): echo 'disabled'; endif; ?> <?php if($searchable): ?> data-admin-searchable-select <?php endif; ?> aria-invalid="<?php echo e($errors->has($name) ? 'true' : 'false'); ?>"
        <?php echo e($attributes->except('class')->merge(['class' => 'admin-form-control admin-form-select form-select'.($errors->has($name) ? ' is-invalid' : '')])); ?>>
        <?php if($placeholder): ?><option value=""><?php echo e($placeholder); ?></option><?php endif; ?>
        <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $optionValue => $optionLabel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($optionValue); ?>" <?php if((string) old($name, $value) === (string) $optionValue): echo 'selected'; endif; ?>><?php echo e($optionLabel); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php echo e($slot); ?>

    </select>
    <?php if($helpText): ?><p 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/select-input.blade.php ENDPATH**/ ?>