<?php if($multiSelect): ?>
    <?php
        $selectedIdArray = explode(',', $selected);
    ?>
    <select class="form-select multiple-select-clear-field" id="<?php echo e($dropdownName); ?>" name="<?php echo e($dropdownName); ?>" data-placeholder="Choose one thing" multiple>
        <?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($data['id']); ?>" <?php echo e(in_array($data['id'], $selectedIdArray) ? 'selected' : ''); ?>><?php echo e($data['name']); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </select>
<?php else: ?>
    <select class="form-select <?php echo e($enableToSelect ? 'single-select-clear-field' : ''); ?>" id="<?php echo e($dropdownName); ?>" name="<?php echo e($dropdownName); ?>" data-placeholder="Choose one thing">
        <?php if($showSelectOptionAll): ?>
            <option value="">All</option>
        <?php elseif($enableToSelect): ?>
            <option value=""></option>
        <?php endif; ?>
        <?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($data['id']); ?>" <?php echo e($selected == $data['id'] ? 'selected' : ''); ?>><?php echo e($data['name']); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </select>
<?php endif; ?>




<?php /**PATH C:\xampp\htdocs\dt\resources\views/components/dropdown-warehouse.blade.php ENDPATH**/ ?>