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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
     'type' => 'text',
     'id' => null,
     'label' => null,
     'name' => null,
     'value' => '',
     'class' => null,
     'options' => [],
     'currencies' => [],
     'formText' => 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(([
     'type' => 'text',
     'id' => null,
     'label' => null,
     'name' => null,
     'value' => '',
     'class' => null,
     'options' => [],
     'currencies' => [],
     'formText' => 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); ?>

 <div class="<?php echo e($class); ?>">
     <?php if($label): ?>
         <label for="<?php echo e($id ?? $name); ?>" class="form-label"><?php echo e($label); ?></label>
     <?php endif; ?>

     <?php if($type === 'select'): ?>
         <select id="<?php echo e($id ?? $name); ?>" name="<?php echo e($name); ?>"
             class="form-select <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
             <option value="">Select <?php echo e($label); ?></option>
             <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <option value="<?php echo e($option); ?>" <?php echo e(old($name, $value) == $option ? 'selected' : ''); ?>>
                     <?php echo e($option); ?>

                 </option>
             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         </select>
     <?php elseif($type === 'currencies'): ?>
         <select id="<?php echo e($id ?? $name); ?>" name="<?php echo e($name); ?>"
             class="form-select <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
             <option value="">Select <?php echo e($label); ?></option>
             <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <option value="<?php echo e($currency['name']); ?>-<?php echo e($currency['code']); ?>-<?php echo e($currency['symbol']); ?>"
                     <?php echo e(old($name, $value) == $currency['name'] . '-' . $currency['code'] . '-' . $currency['symbol'] ? 'selected' : ''); ?>>
                     <?php echo e($currency['name']); ?></option>
             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         </select>
     <?php elseif($type === 'selectKeyValuePair'): ?>
         <select id="<?php echo e($id ?? $name); ?>" name="<?php echo e($name); ?>"
             class="form-select <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
             <option value="">Select <?php echo e($label); ?></option>
             <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <option value="<?php echo e($key); ?>" <?php echo e(old($name, $value) == $key ? 'selected' : ''); ?>>
                     <?php echo e($value); ?>

                 </option>
             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         </select>
     <?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="invalid-feedback"><?php echo e($message); ?></span>
     <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

     <?php if($formText): ?>
         <small class="form-text text-muted">
             <?php echo e($formText); ?>

         </small>
     <?php endif; ?>
 </div>
<?php /**PATH C:\xampp\htdocs\projects\online-banking-v7.1\resources\views/components/dashboard/user/form-select.blade.php ENDPATH**/ ?>