<!-- sidebar part here -->

<nav id="sidebar" class="sidebar">
    <div class="sidebar-header update_sidebar">
        <a class="large_logo" href="<?php echo e(url('/login')); ?>">
            <img src="<?php echo e(showImage(app('general_setting')->logo)); ?>" alt="">
        </a>
        <a class="mini_logo" href="<?php echo e(url('/login')); ?>">
            <img src="<?php echo e(showImage(app('general_setting')->favicon)); ?>" alt="">
        </a>
        <a id="close_sidebar" class="d-lg-none">
            <i class="ti-close"></i>
        </a>
    </div>
    <ul id="sidebar_menu">

        <?php if(permissionCheck('admin.dashboard')): ?>
            <li class="<?php echo e(request()->is('admin-dashboard') || request()->is('seller/dashboard') ?'mm-active' : ''); ?> sortable_li"
                data-position="<?php echo e(menuManagerCheck(1,1)->position); ?>" data-status="<?php echo e(menuManagerCheck(1,1)->status); ?>">

                <a <?php if(auth()->check() && auth()->user()->role->type == "superadmin" || auth()->check() && auth()->user()->role->type == "admin" || auth()->check() && auth()->user()->role->type == "staff"): ?> href="<?php echo e(route('admin.dashboard')); ?>"  <?php endif; ?> aria-expanded="false">
                    <div class="nav_icon_small">
                        <span class="fas fa-th"></span>
                    </div>
                    <div class="nav_title">
                        <span><?php echo e(__('common.dashboard')); ?></span>
                    </div>
                </a>
            </li>
        <?php endif; ?>

        <?php if(permissionCheck('seller.dashboard') && auth()->user()->role->type == 'seller' && isModuleActive('MultiVendor')): ?>
            <li class="<?php echo e(request()->is('seller/dashboard') ?'mm-active' : ''); ?> sortable_li"
                data-position="<?php echo e(menuManagerCheck(1,34)->position); ?>" data-status="<?php echo e(menuManagerCheck(1,34)->status); ?>">
                <a href="<?php echo e(route('seller.dashboard')); ?>" aria-expanded="false">
                    <div class="nav_icon_small">
                        <span class="fas fa-th"></span>
                    </div>
                    <div class="nav_title">
                        <span><?php echo e(__('common.dashboard')); ?></span>
                    </div>
                </a>
            </li>
        <?php endif; ?>



        <?php if(isModuleActive('MultiVendor')): ?>
            <?php echo $__env->make('multivendor::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php if(isModuleActive('Lead')): ?>
            <?php echo $__env->make('lead::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php echo $__env->make('adminreport::seller.menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


        <?php if(auth()->check() && auth()->user()->role->type == "superadmin" || auth()->check() && auth()->user()->role->type == "admin" || auth()->check() && auth()->user()->role->type == "staff"): ?>
            <?php echo $__env->make('frontendcms::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('appearance::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('blog::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('customer::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php echo $__env->make('seller::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php if(auth()->check() && auth()->user()->role->type == "superadmin" || auth()->check() && auth()->user()->role->type == "admin" || auth()->check() && auth()->user()->role->type == "staff"): ?>
            <?php echo $__env->make('wallet::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('contactrequest::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>
        <?php echo $__env->make('marketing::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        <?php if(auth()->check() && auth()->user()->role->type == "superadmin" || auth()->check() && auth()->user()->role->type == "admin" || auth()->check() && auth()->user()->role->type == "staff"): ?>
            <?php echo $__env->make('giftcard::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php if(isModuleActive("Affiliate") && permissionCheck('affiliate')): ?>
            <?php echo $__env->make('affiliate::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php if(isModuleActive('Affiliate') && permissionCheck('page_builder')): ?>
            <?php echo $__env->make('pagebuilder::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php if(permissionCheck('form_builder')): ?>
            <?php echo $__env->make('formbuilder::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php echo $__env->make('product::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo $__env->make('review::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo $__env->make('ordermanage::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo $__env->make('refund::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php if(auth()->check() && auth()->user()->role->type == "superadmin" || auth()->check() && auth()->user()->role->type == "admin" || auth()->check() && auth()->user()->role->type == "staff"): ?>
            <?php echo $__env->make('generalsetting::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('paymentgateway::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('setup::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php if(file_exists(base_path().'/Modules/GST/')): ?>
                <?php echo $__env->make('gst::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php endif; ?>
            <?php echo $__env->make('account::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php echo $__env->make('sidebarmanager::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php if(isModuleActive('Otp')): ?>
            <?php echo $__env->make('otp::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>
        <?php echo $__env->make('utilities::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


        <?php echo $__env->make('supportticket::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php if(auth()->check() && auth()->user()->role->type == "superadmin" || auth()->check() && auth()->user()->role->type == "admin" || auth()->check() && auth()->user()->role->type == "staff"): ?>
            <?php echo $__env->make('useractivitylog::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('backEnd.menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('visitor::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('adminreport::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('backup::menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>

        <?php if(permissionCheck('seller_subscription_payment') && isModuleActive('MultiVendor')): ?>
            <?php if(auth()->check() && auth()->user()->role->type == "seller"): ?>
                <li class="<?php echo e(request()->is('seller/my-subscription-payment-list') ?'mm-active' : ''); ?> sortable_li" data-position="<?php echo e(menuManagerCheck(1,29)->position); ?>" data-status="<?php echo e(menuManagerCheck(1,29)->status); ?>">
                    <a class="" href="<?php echo e(route('seller.my_subscription_payment_list')); ?>" aria-expanded="false">
                        <div class="nav_icon_small">
                            <span class="fas fa-th"></span>
                        </div>
                        <div class="nav_title">
                            <span><?php echo e(__('common.subscription_payment')); ?></span>
                        </div>
                    </a>
                </li>
            <?php endif; ?>
        <?php endif; ?>




        <?php if(permissionCheck('customer_panel') && isModuleActive('MultiVendor')): ?>

        <?php
            $customer_backkend = false;
            if(strpos(request()->getUri(),'my-purchase-orders') != false || strpos(request()->getUri(),'purchased-gift-cards') != false || strpos(request()->getUri(),'my-wishlist') != false || request()->is('refund/my-refund-list') || request()->is('digital-products') || request()->is('profile/coupons') || request()->is('profile/referral') || request()->is('profile'))
            {
                $customer_backkend = true;
            }
        ?>

        <li class="<?php echo e($customer_backkend ?'mm-active' : ''); ?> sortable_li" data-position="<?php echo e(menuManagerCheck(1,26)->position); ?>" data-status="<?php echo e(menuManagerCheck(1,26)->status); ?>">
            <a href="javascript:;" class="has-arrow" aria-expanded="<?php echo e($customer_backkend ? 'true' : 'false'); ?>">
                <div class="nav_icon_small">
                    <span class="fas fa-th"></span>
                </div>
                <div class="nav_title">
                    <span><?php echo e(__('customer_panel.customer_panel')); ?></span>
                </div>
            </a>

            <ul class="mm-collapse">
                <?php if(permissionCheck('frontend.my_purchase_order_list') && menuManagerCheck(2,26,'frontend.my_purchase_order_list')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,26,'frontend.my_purchase_order_list')->position); ?>">
                    <a href="<?php echo e(route('frontend.my_purchase_order_list')); ?>" <?php if(request()->is('my-purchase-orders')): ?> class="active" <?php endif; ?>><?php echo e(__('customer_panel.my_purchases')); ?></a>
                </li>
                <?php endif; ?>
                <?php if(permissionCheck('frontend.purchased-gift-card') && menuManagerCheck(2,26,'frontend.purchased-gift-card')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,26,'frontend.purchased-gift-card')->position); ?>">
                    <a href="<?php echo e(route('frontend.purchased-gift-card')); ?>" <?php if(request()->is('purchased-gift-cards')): ?> class="active" <?php endif; ?>><?php echo e(__('customer_panel.gift_card')); ?></a>
                </li>
                <?php endif; ?>
                <?php if(permissionCheck('frontend.digital_product') && menuManagerCheck(2,26,'frontend.digital_product')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,26,'frontend.digital_product')->position); ?>">
                    <a href="<?php echo e(route('frontend.digital_product')); ?>" <?php if(request()->is('digital-products')): ?> class="active" <?php endif; ?>><?php echo e(__('customer_panel.digital_product')); ?></a>
                </li>
                <?php endif; ?>
                <?php if(permissionCheck('frontend.my-wishlist') && menuManagerCheck(2,26,'frontend.my-wishlist')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,26,'frontend.my-wishlist')->position); ?>">
                    <a href="<?php echo e(route('frontend.my-wishlist')); ?>" <?php if(request()->is('my-wishlist')): ?> class="active" <?php endif; ?>><?php echo e(__('customer_panel.my_wishlist')); ?></a>
                </li>
                <?php endif; ?>
                <?php if(permissionCheck('refund.frontend.index') && menuManagerCheck(2,26,'refund.frontend.index')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,26,'refund.frontend.index')->position); ?>">
                    <a href="<?php echo e(route('refund.frontend.index')); ?>" <?php if(request()->is('refund/my-refund-list')): ?> class="active" <?php endif; ?>><?php echo e(__('customer_panel.refund_dispute')); ?></a>
                </li>
                <?php endif; ?>
                <?php if(permissionCheck('customer_panel.coupon') && menuManagerCheck(2,26,'customer_panel.coupon')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,26,'customer_panel.coupon')->position); ?>">
                    <a href="<?php echo e(route('customer_panel.coupon')); ?>" <?php if(request()->is('profile/coupons')): ?> class="active" <?php endif; ?>><?php echo e(__('customer_panel.my_coupon')); ?></a>
                </li>
                <?php endif; ?>
                <?php if(permissionCheck('frontend.customer_profile') && menuManagerCheck(2,26,'frontend.customer_profile')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,26,'frontend.customer_profile')->position); ?>">
                    <a href="<?php echo e(route('frontend.customer_profile')); ?>" <?php if(request()->is('profile')): ?> class="active" <?php endif; ?>><?php echo e(__('customer_panel.my_account')); ?></a>
                </li>
                <?php endif; ?>

                <?php if(permissionCheck('customer_panel.referral') && menuManagerCheck(2,26,'customer_panel.referral')->status == 1): ?>
                <li data-position="<?php echo e(menuManagerCheck(2,26,'customer_panel.referral')->position); ?>">
                    <a href="<?php echo e(route('customer_panel.referral')); ?>" <?php if(request()->is('profile/referral')): ?> class="active" <?php endif; ?>><?php echo e(__('customer_panel.my_referral')); ?></a>
                </li>
                <?php endif; ?>

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

    </ul>

</nav>
<!-- sidebar part end -->
<?php /**PATH /home/penastud/public_html/mart/resources/views/backEnd/partials/_sidebar.blade.php ENDPATH**/ ?>