<?php if(count(@$menu->rightPanelData) > 0): ?>
    <?php $__currentLoopData = @$menu->rightPanelData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="col-lg-12 single_item" data-id="<?php echo e($element->id); ?>">
            <div class="mb-10">
                <div class="card" id="accordion_right_<?php echo e($element->id); ?>">
                    <div class="card-header card_header_element">
                        <p class="d-inline">
                            <?php echo e(@$element->title); ?>

                        </p>
                        <a href="" data-id="<?php echo e($element->id); ?>" class="pull-right d-inline primary-btn right_panel_category_delete_btn"><i class="ti-close"></i></a>
                        <a href="javascript:void(0);" onclick="" class="pull-right d-inline  mr-10 primary-btn"
                            data-toggle="collapse" data-target="#collapse_right_<?php echo e($element->id); ?>" aria-expanded="true"
                            aria-controls="collapse_right_<?php echo e($element->id); ?>"><?php echo e(__('common.edit')); ?></a>

                    </div>
                    <div id="collapse_right_<?php echo e($element->id); ?>" class="collapse"
                        aria-labelledby="heading_right_<?php echo e($element->id); ?>" data-parent="#accordion_right_<?php echo e($element->id); ?>">
                        <div class="card-body">
                            <form enctype="multipart/form-data" id="rightPanelDataEditForm">
                                <div class="row">
                                    <input type="hidden" name="id" value="<?php echo e($element->id); ?>">

                                    <div class="col-lg-12">
                                        <div class="primary_input mb-25">
                                            <label class="primary_input_label" for="title">
                                                <?php echo e(__('marketing.navigation_label')); ?> <span class="text-danger">*</span></label>
                                            <input class="primary_input_field title" type="text" name="title"
                                                autocomplete="off" value="<?php echo e($element->title); ?>"
                                                placeholder="<?php echo e(__('marketing.navigation_label')); ?>" required>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="primary_input mb-15">
                                            <label class="primary_input_label"
                                                for=""><?php echo e(__('common.category')); ?> <span
                                                    class="text-danger">*</span></label>
                                            <select name="category"
                                                class="primary_select mb-15 right_category">
                                                <?php $__currentLoopData = $categories->where('parent_id', 0); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option <?php echo e($element->category_id == $category->id?'selected':''); ?> value="<?php echo e($category->id); ?>"><span>-></span> <?php echo e($category->name); ?></option>
                                                    <?php if(count($category->subCategories) > 0): ?>
                                                        <?php $__currentLoopData = $category->subCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <?php echo $__env->make('menu::menu.components._category_select_option',['subItem' => $subItem, 'element' => $element], \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>
                                    </div>
                                    <div class="col-xl-12">
                                        <div class="primary_input">
                                            <ul id="theme_nav" class="permission_list sms_list ">
                                                <li>
                                                    <label data-id="bg_option" class="primary_checkbox d-flex mr-12">
                                                        <input name="is_newtab" value="1"
                                                            <?php echo e($element->is_newtab == 1 ? 'checked' : ''); ?>

                                                            type="checkbox">
                                                        <span class="checkmark"></span>
                                                    </label>
                                                    <p><?php echo e(__('menu.open_link_in_a_new_tab')); ?></p>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>

                                    <div class="col-lg-12 text-center">
                                        <div class="d-flex justify-content-center pt_20">
                                            <button type="submit" class="primary-btn fix-gr-bg"><i class="ti-check"></i>
                                                <?php echo e(__('common.update')); ?>

                                            </button>
                                        </div>
                                    </div>

                                </div>
                            </form>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
    <div class="mt-20 pt-100 text-center">
        <?php echo e(__('menu.no_categories')); ?>

    </div>
<?php endif; ?>
<?php /**PATH /home/penastud/public_html/mart/Modules/Menu/Resources/views/menu/components/rightpanel_category_list.blade.php ENDPATH**/ ?>