<?php
    $LanguageList = getLanguageList();
?>
<?php if(count(@$menus)>0): ?>
    <div class="card">
        <div class="card-body">
            <div class="row">
                <div class="col-lg-12">
                    <div id="accordion" class="dd">
                        <ol class="dd-list">

                            <?php $__currentLoopData = $menus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php
                                    $mega_menu=$element->mega_menu;
                                    $level=1;
                                ?>
                                <li class="dd-item" data-id="<?php echo e($element->id); ?>">
                                    <div class="card accordion_card" id="accordion_<?php echo e($element->id); ?>">
                                        <div class="card-header item_header" id="heading_<?php echo e($element->id); ?>">
                                            <div class="dd-handle">
                                                <div class="float-left">
                                                    <?php echo e($element->title); ?> ( <?php echo e($element->type); ?> )
                                                </div>
                                            </div>
                                            <div class="float-right btn_div">
                                                <a href="javascript:void(0);" onclick="" data-toggle="collapse"
                                                   data-target="#collapse_<?php echo e($element->id); ?>" aria-expanded="false"
                                                   aria-controls="collapse_<?php echo e($element->id); ?>"
                                                   class="primary-btn small fix-gr-bg text-center button panel-title">
                                                    <i class="ti-settings settingBtn"></i>
                                                    <span class="collapge_arrow_normal"></span>
                                                </a>
                                                <a href="javascript:void(0);" onclick="elementDelete(<?php echo e($element->id); ?>)"
                                                   class="primary-btn small fix-gr-bg text-center button">
                                                    <i class="ti-close"></i>
                                                </a>
                                            </div>
                                        </div>
                                        <?php echo $__env->make('frontendmanage::headermenu.menu_edit_form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    </div>

                                    <ol class="dd-list">
                                        <?php $__currentLoopData = $element->childs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php
                                                $level=2;
                                            ?>
                                            <li class="dd-item" data-id="<?php echo e($element->id); ?>">
                                                <div class="card accordion_card" id="accordion_<?php echo e($element->id); ?>">
                                                    <div class="card-header item_header" id="heading_<?php echo e($element->id); ?>">
                                                        <div class="dd-handle">
                                                            <div class="float-left">
                                                                <?php echo e($element->title); ?> ( <?php echo e($element->type); ?> )
                                                            </div>
                                                        </div>
                                                        <div class="float-right btn_div">
                                                            <a href="javascript:void(0);" onclick=""
                                                               data-toggle="collapse"
                                                               data-target="#collapse_<?php echo e($element->id); ?>"
                                                               aria-expanded="false"
                                                               aria-controls="collapse_<?php echo e($element->id); ?>"
                                                               class="primary-btn small fix-gr-bg text-center button panel-title ">
                                                                <i class="ti-settings settingBtn"></i>
                                                                <span
                                                                    class="collapge_arrow_normal"></span></a>
                                                            <a href="javascript:void(0);"
                                                               onclick="elementDelete(<?php echo e($element->id); ?>)"
                                                               class="primary-btn small fix-gr-bg text-center button"><i
                                                                    class="ti-close"></i></a>
                                                        </div>
                                                    </div>
                                                    <?php echo $__env->make('frontendmanage::headermenu.menu_edit_form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                </div>
                                            </li>
                                            <ol class="dd-list">
                                                <?php $__currentLoopData = $element->childs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $level=3;
                                                    ?>
                                                    <li class="dd-item" data-id="<?php echo e($element->id); ?>">
                                                        <div class="card accordion_card"
                                                             id="accordion_<?php echo e($element->id); ?>">
                                                            <div class="card-header item_header"
                                                                 id="heading_<?php echo e($element->id); ?>">
                                                                <div class="dd-handle">
                                                                    <div class="float-left">
                                                                        <?php echo e($element->title); ?> ( <?php echo e($element->type); ?> )
                                                                    </div>
                                                                </div>
                                                                <div class="float-right btn_div">
                                                                    <a href="javascript:void(0);" onclick=""
                                                                       data-toggle="collapse"
                                                                       data-target="#collapse_<?php echo e($element->id); ?>"
                                                                       aria-expanded="false"
                                                                       aria-controls="collapse_<?php echo e($element->id); ?>"
                                                                       class="primary-btn small fix-gr-bg text-center button panel-title">
                                                                        <i class="ti-settings settingBtn"></i>
                                                                        <span
                                                                            class="collapge_arrow_normal"></span></a>
                                                                    <a href="javascript:void(0);"
                                                                       onclick="elementDelete(<?php echo e($element->id); ?>)"
                                                                       class="primary-btn small fix-gr-bg text-center button"><i
                                                                            class="ti-close"></i></a>
                                                                </div>
                                                            </div>
                                                            <?php echo $__env->make('frontendmanage::headermenu.menu_edit_form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                        </div>
                                                    </li>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </ol>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                    </ol>
                                </li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php else: ?>
    <div class="card">
        <div class="card-body text-center">
            <?php echo app('translator')->get('frontendmanage.Not Found Data'); ?>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /home/penastud/public_html/lmspena/Modules/FrontendManage/Resources/views/headermenu/submenu_list.blade.php ENDPATH**/ ?>