<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
<?php foreach($attributes->onlyProps([
'options' => [],
'id' => '',
'label' => '',
'name' => '',
'col' => 'col-sm-12',
'required' => '0',
'display'=>'name',
'selected'=>''
]) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $attributes = $attributes->exceptProps([
'options' => [],
'id' => '',
'label' => '',
'name' => '',
'col' => 'col-sm-12',
'required' => '0',
'display'=>'name',
'selected'=>''
]); ?>
<?php foreach (array_filter(([
'options' => [],
'id' => '',
'label' => '',
'name' => '',
'col' => 'col-sm-12',
'required' => '0',
'display'=>'name',
'selected'=>''
]), '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
    $finalClasses = 'form-control' . ($errors->has($name) ? ' is-invalid' : '');
?>
<div class="<?php echo e($col); ?>">
    <div class="mb-3 has-danger">
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($label!=''): ?>
        <label class="mb-1" for="<?php echo e($id == '' ? $name : $id); ?>"><?php echo e($label); ?> <?php echo $required==1 ? '<i
                class="text-danger">*</i>' : ''; ?></label>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        <select name="<?php echo e($name); ?>"
            id="<?php echo e($id == '' ? $name : $id); ?>" style="width: 100%;"  <?php echo e($attributes->merge(['class' => $finalClasses])); ?>>
            <option value=""></option>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($option->id); ?>" <?php echo e($selected==$option->id?'selected':(old($name)==$option->id ? 'selected' : '')); ?>><?php echo e($option->$display); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </select>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?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="form-control-feedback text-danger" role="alert">
            <strong><?php echo e($message); ?></strong>
        </span>
        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>
</div><?php /**PATH /home/faraaadm/library.farau.edu.af/resources/views/components/select.blade.php ENDPATH**/ ?>