<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
<?php foreach($attributes->onlyProps(['label' => null, 'name', 'options' => [], 'selected' => null]) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $attributes = $attributes->exceptProps(['label' => null, 'name', 'options' => [], 'selected' => null]); ?>
<?php foreach (array_filter((['label' => null, 'name', 'options' => [], 'selected' => null]), '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); ?>

<div class="space-y-1">
    <?php if($label): ?>
        <label class="text-sm font-medium text-gray-700"><?php echo e($label); ?></label>
    <?php endif; ?>

    <select 
        name="<?php echo e($name); ?>"
        <?php echo e($attributes->merge([
            'class' => 'w-full rounded-lg border border-gray-300 px-3 py-2 text-sm shadow-sm focus:border-blue-500 focus:ring focus:ring-blue-200'
        ])); ?>

    >
        <option value="">-- Pilih --</option>

        <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($key); ?>" <?php if(old($name,$selected)==$key): echo 'selected'; endif; ?>>
                <?php echo e($value); ?>

            </option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </select>
</div>
<?php /**PATH /home/sdmk4757/public_html/ppdb.sdmuhwonorejo.com/resources/views/components/select.blade.php ENDPATH**/ ?>