<?php if(isset($options)): ?>
    <?php if(array_key_exists("tabs",$options) and !blank($options['tabs'])): ?>
        <div class="row">
            <div class="col-lg-12">
                <ul class="nav nav-tabs" role="tablist"
                    style="<?php echo e($options['styles'] ?? ""); ?>">
                    <?php $__currentLoopData = $options['tabs']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <?php
                        $visible = $option['visible'] ?? true;
                        $route = $option['content']['table']['route'] ?? $option['table']['route'] ?? "";
                    ?>
                          <?php if($visible): ?>
                            <li class="nav-item">
                                <a data-toggle="tab" role="tab"
                                   class="nav-link <?php echo e(($loop->first) ?"border-left-0 active show":""); ?>"
                                   id="<?php echo e($option['id'] ?? ""); ?>"
                                   data-id-table = "<?php echo e($option['content']['table']['id'] ?? $option['table']['id'] ?? ""); ?>"
                                   data-route = "<?php echo e(($route) ? route($route) : ""); ?>"
                                   data-tab-index = "<?php echo e($option['tab-index'] ?? ""); ?>"
                                   href="#<?php echo e($option['href'] ?? ""); ?>"
                                   aria-controls="<?php echo e($option['id'] ?? ""); ?>"
                                   aria-selected="<?php echo e(($loop->first) ?"true":"false"); ?>">
                                    <span class="<?php echo e($option['icon'] ?? ""); ?>"></span>
                                    <?php echo e(__($option['title'] ?? "")); ?>

                                </a>
                            </li>
                        <?php endif; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                </ul>
                <div class="tab-content rows">
                    <?php $__currentLoopData = $options['tabs']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>


                            <div role="tabpanel"
                                 class="row tab-pane fade <?php echo e(($loop->first) ?"active show":""); ?>"
                                 id="<?php echo e($option['href'] ?? ""); ?>"
                                 aria-labelledby="<?php echo e($option['id'] ?? ""); ?>">
                                <?php if ($__env->exists(($option['content']['file']), [
                                'table' => $option['content']['table'] ?? null,
                               'options' =>$option,
                             ])) echo $__env->make(($option['content']['file']), [
                                'table' => $option['content']['table'] ?? null,
                               'options' =>$option,
                             ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
        </div>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH /home/lekruu/public_html/resources/views/backend/stocks/management/tabs-generator.blade.php ENDPATH**/ ?>