<?php if($data_type == 'product'): ?>
<div class="primary_input mb-25">
    <label class="primary_input_label" for=""><?php echo e(__('product.product_list')); ?></label>
    <select name="data_id" id="slider_product" class="primary_select slider_drop mb-15">
        <?php $__currentLoopData = $productList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <option value="<?php echo e($product->id); ?>"><?php echo e($product->product->product_name); ?> <?php if(isModuleActive('MultiVendor')): ?> [<?php if($product->seller->role->type == 'seller'): ?> <?php echo e($product->seller->first_name); ?> <?php else: ?> Inhouse <?php endif; ?>] <?php endif; ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        
    </select>
    <span class="text-danger"></span>
</div>

<?php elseif($data_type == 'category'): ?>
<div class="primary_input mb-25">
    <label class="primary_input_label" for=""><?php echo e(__('product.category_list')); ?></label>
    <select name="data_id" id="slider_category" class="primary_select slider_drop mb-15">
        
        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if($item->status == 1): ?>
                <option value="<?php echo e($item->id); ?>"><span>-></span> <?php echo e($item->name); ?></option>
            <?php endif; ?>

            <?php if(count($item->subCategories) > 0): ?>
                <?php $__currentLoopData = $item->subCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php echo $__env->make('appearance::header.components._category_select_option',['subItem' => $subItem], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>    
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        
    </select>
    <span class="text-danger"></span>
</div>
<?php elseif($data_type == 'brand'): ?>
<div class="primary_input mb-25">
    <label class="primary_input_label" for=""><?php echo e(__('product.brand_list')); ?></label>
    <select name="data_id" id="slider_brand" class="primary_select slider_drop mb-15">
        <?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <option value="<?php echo e($brand->id); ?>"><?php echo e($brand->name); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        
    </select>
    <span class="text-danger"></span>
</div>

<?php elseif($data_type == 'tag'): ?>
<div class="primary_input mb-25">
    <label class="primary_input_label" for=""><?php echo e(__('common.tag')); ?> <?php echo e(__('common.list')); ?></label>
    <select name="data_id" id="slider_tag" class="primary_select slider_drop mb-15">
        <?php $__currentLoopData = $tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <option value="<?php echo e($tag->id); ?>"><?php echo e($tag->name); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        
    </select>
    <span class="text-danger"></span>
</div>

<?php elseif($data_type == 'url'): ?>
<div class="col-lg-12">
    <div class="primary_input mb-25">
            <label class="primary_input_label"
                for="url"><?php echo e(__('setup.url')); ?> <span class="text-danger">*</span></label>
                <input class="primary_input_field" type="text" id="url" name="data_id" autocomplete="off"
            value="" placeholder="<?php echo e(__('setup.url')); ?>">
    </div>
    <span class="text-danger" id="error_name"></span>
</div>


<?php endif; ?><?php /**PATH /home/penastud/public_html/gsport/Modules/Appearance/Resources/views/header/components/slider_for_data.blade.php ENDPATH**/ ?>