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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
     'type' => 'text',
     'id' => null,
     'label' => null,
     'name' => null,
     'value' => '',
     'step' => null,
     'min' => null,
     'max' => null,
     'options' => [], // for select dropdowns
 ]));

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' => '',
     'step' => null,
     'min' => null,
     'max' => null,
     'options' => [], // for select dropdowns
 ]), '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="col-md-6 mb-3">
     <?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); ?>"
             <?php echo e($attributes->merge(['class' => 'form-select ' . ($errors->has($name) ? 'is-invalid' : '')])); ?>>
             <option value="">-- Select <?php echo e($label); ?> --</option>
             <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <option value="<?php echo e(is_string($key) ? $key : $option); ?>"
                     <?php echo e(old($name, $value) == (is_string($key) ? $key : $option) ? 'selected' : ''); ?>>
                     <?php echo e($option); ?>

                 </option>
             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         </select>
     <?php elseif($type === 'textarea'): ?>
         <textarea id="<?php echo e($id ?? $name); ?>" name="<?php echo e($name); ?>"
             <?php echo e($attributes->merge(['class' => 'form-control ' . ($errors->has($name) ? 'is-invalid' : '')])); ?>><?php echo e(old($name, $value)); ?></textarea>
     <?php elseif($type === 'select3Dimensional'): ?>
         <select id="<?php echo e($id ?? $name); ?>" name="<?php echo e($name); ?>"
             <?php echo e($attributes->merge(['class' => 'form-select ' . ($errors->has($name) ? 'is-invalid' : '')])); ?>>
             <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['name']); ?>-<?php echo e($option['code']); ?>-<?php echo e($option['symbol']); ?>"
                     <?php echo e(old($name, $value) == $option['name'] . '-' . $option['code'] . '-' . $option['symbol'] ? 'selected' : ''); ?>>
                     <?php echo e($option['name']); ?></option>
             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         </select>
     <?php else: ?>
         <input type="<?php echo e($type); ?>" id="<?php echo e($id ?? $name); ?>" name="<?php echo e($name); ?>"
             value="<?php echo e(old($name, $value)); ?>" step="<?php echo e($step); ?>" min="<?php echo e($min); ?>"
             max="<?php echo e($max); ?>"
             <?php echo e($attributes->merge(['class' => 'form-control ' . ($errors->has($name) ? 'is-invalid' : '')])); ?>>
     <?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); ?>
 </div>
<?php /**PATH C:\xampp\htdocs\projects\logistics-v4.0\resources\views/components/admin/input-field.blade.php ENDPATH**/ ?>