<div class="sub_menu <?php echo e($top_bar->status == 0 ? 'd-none':''); ?>" id="top_bar">
    <div class="container">
        <div class="row align-items-center justify-content-center">
            <div class="col-sm-10 col-md-8 col-lg-4 align-items-center">
                <div class="left_sub_menu">
                    <div class="select_option submenu_icon">
                        <a href="javascript:void(0)"
                            class="select_btn"><span><?php echo e(strtoupper($locale)); ?></span><span><?php echo e(strtoupper($currency_code)); ?></span></a>
                        <form action="<?php echo e(route('frontend.locale')); ?>" method="POST">
                            <?php echo csrf_field(); ?>
                            <div class="select_option_list text-center">
                                <div class="single_select_option">
                                    <p><?php echo e(__('defaultTheme.language')); ?></p>
                                    <select name="lang" class="country_list">
                                        <?php $__currentLoopData = $langs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $lang): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option <?php echo e($locale==$lang->code?'selected':''); ?> value="<?php echo e($lang->code); ?>">
                                            <?php echo e($lang->native); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                    </select>
                                </div>
                                <div class="single_select_option">
                                    <p><?php echo e(__('defaultTheme.currency')); ?></p>
                                    <select name="currency" class="country_list">
                                        <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option <?php echo e($currency_code==$item->code?'selected':''); ?>

                                            value="<?php echo e($item->id); ?>">
                                            <?php echo e($item->name); ?> (<?php echo e($item->symbol); ?>)</option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                                <button type="submit" class="btn_1"><?php echo e(__('defaultTheme.save_change')); ?></button>
                            </div>
                        </form>
                    </div>
                    <ul class="left_ul_tupbar">
                        <?php if(isset($topnavbar_left_menu)): ?>
                        <?php $__currentLoopData = $topnavbar_left_menu->elements->where('has_parent',null); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <?php if($element->type == 'page' && $element->page->slug == 'merchant' && isModuleActive('MultiVendor')): ?>
                        <li>
                            <?php if(app('business_settings')->where('category_type', 'vendor_configuration')->where('type',
                                'Multi-Vendor System Activate')->first()->status): ?>
                                <?php if(auth()->check() && auth()->user()->role->type == 'customer'): ?>
                                    <a href="<?php echo e(route('frontend.merchant-register-step-first')); ?>"><?php echo e(__('defaultTheme.become a merchant')); ?></a>
                                <?php elseif(!auth()->check()): ?>
                                    <a href="<?php echo e(route('frontend.merchant-register-step-first')); ?>"><?php echo e(__('defaultTheme.become a merchant')); ?></a>
                                <?php endif; ?>
                            <?php endif; ?>
                        </li>

                        <?php elseif($element->type == 'page' && $element->page->slug == 'track-order'): ?>
                        <li>
                            <a class="d-none d-sm-block" href="<?php echo e(route('frontend.order.track')); ?>"><?php echo e(__('defaultTheme.track_your_order')); ?></a>
                        </li>

                        <?php elseif($element->type == 'page' && $element->page->slug == 'contact-us'): ?>
                        <li>
                            <a class="d-none d-sm-block" href="<?php echo e(url('/contact-us')); ?>"><?php echo e(__('defaultTheme.support')); ?></a>
                        </li>
                        <?php elseif($element->type == 'page' && $element->page->slug == 'compare'): ?>
                        <li>
                            <a href="<?php echo e(url('/compare')); ?>">
                                <i class="ti-exchange-vertical compare_icon"><span class="compare_count"><?php echo e($compares); ?></span></i><?php echo e(__('defaultTheme.compare')); ?></a>
                        </li>
                        <?php elseif($element->type == 'page' && $element->page->slug == 'my-wishlist'): ?>
                            <?php if(auth()->check()): ?>
                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                    <li>
                                        <a href="<?php echo e(route('frontend.my-wishlist')); ?>"> <i class="ti-heart compare_icon"><span
                                                    class="wishlist_count"><?php echo e($wishlists); ?></span></i><?php echo e(__('defaultTheme.wishlist')); ?></a>
                                    </li>
                                <?php endif; ?>
                            <?php else: ?>
                                <li>
                                    <a href="<?php echo e(route('frontend.my-wishlist')); ?>"> <i class="ti-heart compare_icon"><span
                                                class="wishlist_count"><?php echo e($wishlists); ?></span></i><?php echo e(__('defaultTheme.wishlist')); ?></a>
                                </li>
                            <?php endif; ?>
                        <?php elseif($element->type == 'page' && $element->page->slug == 'cart'): ?>
                        <li>
                            <div class="cart_menu" id="cart_inner">
                                <?php echo $__env->make('frontend.default.partials._cart_details_submenu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                        </li>
                        <?php elseif($element->type == 'page' && $element->page->slug == 'profile'): ?>

                        <li>
                            <div class="cart_menu user_account submenu_icon">
                                <a href="<?php echo e(url('/profile')); ?>" class="cart_menu_item">
                                    <i class="ti-user"></i><?php echo e(__('defaultTheme.account')); ?></a>
                                <div class="cart_iner user_account_iner">

                                    <?php if(auth()->guard()->guest()): ?>
                                    <div class="account_btn">
                                        <a href="<?php echo e(url('/register')); ?>" class="sing_up"><?php echo e(__('defaultTheme.sign_up')); ?></a>
                                        <a href="<?php echo e(url('/login')); ?>" class="login"><?php echo e(__('defaultTheme.login')); ?></a>
                                    </div>

                                    <?php else: ?>

                                    <div class="user_account_details">
                                        <?php $__currentLoopData = $element->childs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($element->type == 'page' && $element->page->slug == 'profile/dashboard'): ?>
                                                <?php if(auth()->check() && auth()->user()->role->type == "superadmin" || auth()->check() && auth()->user()->role->type == "admin" || auth()->check() && auth()->user()->role->type == "staff"): ?>
                                                    <a href="<?php echo e(route('admin.dashboard')); ?>"><i class="ti-dashboard"></i><?php echo e(__('common.dashboard')); ?></a>
                                                <?php elseif(auth()->check() && auth()->user()->role->type == "seller" && isModuleActive('MultiVendor')): ?>
                                                    <a href="<?php echo e(route('seller.dashboard')); ?>"><i class="ti-dashboard"></i><?php echo e(__('common.dashboard')); ?></a>
                                                <?php elseif(auth()->check() && auth()->user()->role->type == "affiliate"): ?>
                                                    <a href="<?php echo e(route('affiliate.my_affiliate.index')); ?>"><i class="ti-dashboard"></i><?php echo e(__('common.dashboard')); ?></a>
                                                <?php else: ?>
                                                    <a href="<?php echo e(route('frontend.dashboard')); ?>"><i class="ti-dashboard"></i><?php echo e(__('common.dashboard')); ?></a>
                                                <?php endif; ?>

                                            <?php elseif($element->type == 'page' && $element->page->slug == 'my-purchase-orders'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(route('frontend.my_purchase_order_list')); ?>"><i
                                                            class="ti-shopping-cart-full"></i><?php echo e(__('order.my_order')); ?></a>
                                                <?php endif; ?>
                                            <?php elseif($element->type == 'page' && $element->page->slug == 'purchased-gift-cards'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(route('frontend.purchased-gift-card')); ?>"><i class="ti-shopping-cart-full"></i><?php echo e(__('customer_panel.gift_card')); ?></a>
                                                <?php endif; ?>
                                            <?php elseif($element->type == 'page' && $element->page->slug == 'digital-products'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(route('frontend.digital_product')); ?>"><i class="ti-shopping-cart-full"></i><?php echo e(__('customer_panel.digital_product')); ?></a>
                                                <?php endif; ?>
                                            <?php elseif($element->type == 'page' && $element->page->slug == 'my-wishlist'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(route('frontend.my-wishlist')); ?>"><i class="ti-heart"></i><?php echo e(__('customer_panel.my_wishlist')); ?></a>
                                                <?php endif; ?>

                                            <?php elseif($element->type == 'page' && $element->page->slug == 'refund/my-refund-list'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(route('refund.frontend.index')); ?>"><i class="ti-reload"></i><?php echo e(__('customer_panel.refund_dispute')); ?></a>
                                                <?php endif; ?>
                                            <?php elseif($element->type == 'page' && $element->page->slug == 'profile/coupons'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(url('/profile/coupons')); ?>"><i class="ti-receipt"></i><?php echo e(__('customer_panel.my_coupon')); ?></a>
                                                <?php endif; ?>
                                            <?php elseif($element->type == 'page' && $element->page->slug == 'profile'): ?>
                                                <a href="<?php echo e(url('/profile')); ?>"><i class="ti-user"></i><?php echo e(__('customer_panel.my_account')); ?></a>
                                            <?php elseif($element->type == 'page' && $element->page->slug == 'wallet/customer/my-wallet-index'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(route('my-wallet.index', 'customer')); ?>"><i class="ti-wallet"></i><?php echo e(__('wallet.my_wallet')); ?></a>
                                                <?php endif; ?>
                                            <?php elseif($element->type == 'page' && $element->page->slug == 'profile/referral'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(url('/profile/referral')); ?>"><i class="ti-user"></i><?php echo e(__('common.referral')); ?></a>
                                                <?php endif; ?>
                                            <?php elseif($element->type == 'page' && $element->page->slug == 'support-ticket'): ?>
                                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                    <a href="<?php echo e(url('/support-ticket')); ?>"><i class="ti-headphone-alt"></i><?php echo e(__('ticket.support_ticket')); ?></a>
                                                <?php endif; ?>
                                            <?php elseif($element->type == 'link'): ?>
                                                <a href="<?php echo e($element->link); ?>"><i class="fas fa-align-left"></i><?php echo e($element->title); ?></a>
                                            <?php elseif($element->type == 'category'): ?>
                                                <a href="<?php echo e(route('frontend.category-product',['slug' => $element->category->slug, 'item' =>'category'])); ?>"><i class="fas fa-bible"></i><?php echo e($element->title); ?></a>
                                            <?php elseif($element->type == 'brand'): ?>
                                                <a href="<?php echo e(route('frontend.category-product',['slug' => $element->brand->slug, 'item' =>'brand'])); ?>"><i class="fas fa-code-branch"></i><?php echo e($element->title); ?></a>
                                            <?php elseif($element->type == 'tag'): ?>
                                                <a href="<?php echo e(route('frontend.category-product',['slug' => $element->tag->name, 'item' =>'tag'])); ?>"><i class="fas fa-tag"></i><?php echo e($element->title); ?></a>
                                            <?php elseif($element->type == 'product' && @$element->product): ?>
                                                <a href="<?php echo e(route('frontend.item.show',@$element->product->slug)); ?>"><i class="fa fa-product-hunt"></i><?php echo e($element->title); ?></a>
                                            <?php elseif($element->type == 'page' && $element->page->status == 1): ?>
                                                <?php if(!isModuleActive('Lead') && $element->page->module == 'Lead'): ?>
                                                    <?php continue; ?>
                                                <?php endif; ?>
                                                    <a  href="<?php echo e(url(@$element->page->slug)); ?>"><i class="fa fa-link"></i><?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?></a>
                                            <?php endif; ?>

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



                                    </div>
                                    <a href="<?php echo e(route('logout')); ?>" class="log_out"><i class="ti-shift-right"></i><?php echo e(__('defaultTheme.log_out')); ?>

                                    </a>
                                    <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" class="d-none">
                                        <?php echo csrf_field(); ?>
                                    </form>

                                    <?php endif; ?>
                                </div>
                            </div>
                        </li>
                        <?php elseif($element->type == 'link'): ?>
                        <li>
                            <a href="<?php echo e($element->link); ?>"><?php echo e($element->title); ?></a>
                        </li>
                        <?php elseif($element->type == 'page' && $element->page->status == 1): ?>
                            <?php if(!isModuleActive('Lead') && $element->page->module == 'Lead'): ?>
                                <?php continue; ?>
                            <?php endif; ?>
                                <li><a  href="<?php echo e(url(@$element->page->slug)); ?>"><?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?></a></li>
                        <?php elseif($element->type == 'category'): ?>

                        <li>
                            <a
                                href="<?php echo e(route('frontend.category-product',['slug' => $element->category->slug, 'item' =>'category'])); ?>">
                                <i class="fas fa-bible"></i><?php echo e($element->title); ?></a>
                        </li>

                        <?php elseif($element->type == 'brand'): ?>
                        <li>
                            <a
                                href="<?php echo e(route('frontend.category-product',['slug' => $element->brand->slug, 'item' =>'brand'])); ?>">
                                <i class="fas fa-code-branch"></i><?php echo e($element->title); ?></a>
                        </li>
                        <?php elseif($element->type == 'tag'): ?>
                        <li>
                            <a
                                href="<?php echo e(route('frontend.category-product',['slug' => $element->tag->name, 'item' =>'tag'])); ?>">
                                <i class="fas fa-tag"></i><?php echo e($element->title); ?></a>
                        </li>
                        <?php elseif($element->type == 'product' && @$element->product): ?>
                        <li>
                            <a href="<?php echo e(route('frontend.item.show',@$element->product->slug)); ?>"> <i
                                    class="fa fa-product-hunt"></i><?php echo e($element->title); ?></a>
                        </li>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </ul>
                </div>
            </div>
            <div class="col-sm-10 col-md-10 col-lg-8">
                <div class="right_sub_menu">
                    <ul>
                        <?php if(isset($topnavbar_right_menu)): ?>
                        <?php if(auth()->guard()->check()): ?>
                        <li>
                            <div class="cart_menu" id="cart_inner2">
                                <?php echo $__env->make('frontend.default.partials._notifications', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                        </li>
                        <?php endif; ?>

                        <?php $__currentLoopData = $topnavbar_right_menu->elements->where('has_parent',null); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>


                        <?php if($element->type == 'page' && $element->page->slug == 'track-order'): ?>
                        <li>
                            <a class="d-none d-sm-block" href="<?php echo e(route('frontend.order.track')); ?>"><?php echo e(__('defaultTheme.track_your_order')); ?></a>
                        </li>

                        <?php elseif($element->type == 'page' && $element->page->slug == 'contact-us'): ?>
                        <li>
                            <a class="d-none d-sm-block" href="<?php echo e(url('/contact-us')); ?>"><?php echo e(__('defaultTheme.support')); ?></a>
                        </li>

                        <?php elseif($element->type == 'page' && $element->page->slug == 'compare'): ?>
                        <li>
                            <a href="<?php echo e(url('/compare')); ?>">
                                <i class="ti-exchange-vertical compare_icon"><span class="compare_count"><?php echo e($compares); ?></span></i><?php echo e(__('defaultTheme.compare')); ?></a>
                        </li>
                        <?php elseif($element->type == 'page' && $element->page->slug == 'my-wishlist'): ?>
                            <?php if(auth()->check()): ?>
                                <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                    <li>
                                        <a href="<?php echo e(route('frontend.my-wishlist')); ?>"> <i class="ti-heart compare_icon"><span class="wishlist_count"><?php echo e($wishlists); ?></span></i><?php echo e(__('defaultTheme.wishlist')); ?></a>
                                    </li>
                                <?php endif; ?>
                            <?php else: ?>
                                <li>
                                    <a href="<?php echo e(route('frontend.my-wishlist')); ?>"> <i class="ti-heart compare_icon"><span class="wishlist_count"><?php echo e($wishlists); ?></span></i><?php echo e(__('defaultTheme.wishlist')); ?></a>
                                </li>
                            <?php endif; ?>
                        <?php elseif($element->type == 'page' && $element->page->slug == 'cart'): ?>
                        <li>
                            <div class="cart_menu" id="cart_inner">
                                <?php echo $__env->make('frontend.default.partials._cart_details_submenu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                        </li>

                        <?php elseif($element->type == 'page' && $element->page->slug == 'profile'): ?>

                        <li>
                            <div class="cart_menu user_account submenu_icon">
                                <a href="javascript:void(0)" class="cart_menu_item">
                                    <i class="ti-user"></i><?php echo e(__('defaultTheme.account')); ?></a>
                                <div class="cart_iner user_account_iner">

                                    <?php if(auth()->guard()->guest()): ?>
                                    <div class="account_btn">
                                        <a href="<?php echo e(url('/register')); ?>" class="sing_up"><?php echo e(__('defaultTheme.sign_up')); ?></a>
                                        <a href="<?php echo e(url('/login')); ?>" class="login"><?php echo e(__('defaultTheme.login')); ?></a>
                                    </div>

                                    <?php else: ?>
                                    <div class="account_btn">
                                        <p>hello! <span><?php echo e(substr(auth()->user()->first_name,0,25)); ?>

                                                <?php if(strlen(auth()->user()->first_name) > 25): ?>... <?php endif; ?></span></p>
                                    </div>

                                    <div class="user_account_details">
                                        <?php if(auth()->check() && auth()->user()->role->type == "affiliate"): ?>
                                            <a href="<?php echo e(route('affiliate.my_affiliate.index')); ?>"><i class="ti-dashboard"></i><?php echo e(__('common.dashboard')); ?></a>

                                        <?php else: ?>
                                            <?php if(auth()->user()->role->type == 'customer' && isModuleActive('MultiVendor')): ?>
                                                <a href="<?php echo e(route('frontend.merchant-register-step-first')); ?>" target="_blank"><i
                                                        class="far fa-user"></i><?php echo e(__('common.convert_as_seller')); ?></a>
                                            <?php endif; ?>

                                            <?php $__currentLoopData = $element->childs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($element->type == 'page' && $element->page->slug == 'profile/dashboard'): ?>
                                                    <?php if(auth()->check()): ?>
                                                        <?php if(auth()->user()->role->type == "superadmin" || auth()->user()->role->type == "admin" || auth()->user()->role->type == "staff"): ?>
                                                            <a href="<?php echo e(route('admin.dashboard')); ?>"><i class="ti-dashboard"></i><?php echo e(__('common.dashboard')); ?></a>
                                                        <?php elseif(auth()->user()->role->type == "seller" && isModuleActive('MultiVendor')): ?>
                                                            <a href="<?php echo e(route('seller.dashboard')); ?>"><i class="ti-dashboard"></i><?php echo e(__('common.dashboard')); ?></a>
                                                        <?php else: ?>
                                                            <a href="<?php echo e(route('frontend.dashboard')); ?>"><i class="ti-dashboard"></i><?php echo e(__('common.dashboard')); ?></a>
                                                        <?php endif; ?>
                                                    <?php endif; ?>

                                                <?php elseif($element->type == 'page' && $element->page->slug == 'my-purchase-orders'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(route('frontend.my_purchase_order_list')); ?>"><i class="ti-shopping-cart-full"></i><?php echo e(__('order.my_order')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'purchased-gift-cards'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(route('frontend.purchased-gift-card')); ?>"><i class="ti-shopping-cart-full"></i><?php echo e(__('customer_panel.gift_card')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'digital-products'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(route('frontend.digital_product')); ?>"><i class="ti-shopping-cart-full"></i><?php echo e(__('customer_panel.digital_product')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'my-wishlist'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(route('frontend.my-wishlist')); ?>"><i class="ti-heart"></i><?php echo e(__('customer_panel.my_wishlist')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'refund/my-refund-list'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(route('refund.frontend.index')); ?>"><i class="ti-reload"></i><?php echo e(__('customer_panel.refund_dispute')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'profile/coupons'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(url('/profile/coupons')); ?>"><i class="ti-receipt"></i><?php echo e(__('customer_panel.my_coupon')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'profile'): ?>
                                                    <a href="<?php echo e(url('/profile')); ?>"><i class="ti-user"></i><?php echo e(__('customer_panel.my_account')); ?></a>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'wallet/customer/my-wallet-index'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(route('my-wallet.index', 'customer')); ?>"><i class="ti-wallet"></i><?php echo e(__('wallet.my_wallet')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'profile/referral'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(url('/profile/referral')); ?>"><i class="ti-user"></i><?php echo e(__('common.referral')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'page' && $element->page->slug == 'support-ticket'): ?>
                                                    <?php if(isModuleActive('MultiVendor') && auth()->user()->role->type != 'superadmin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'admin' || isModuleActive('MultiVendor') && auth()->user()->role->type != 'staff' || auth()->user()->role->type == 'customer'): ?>
                                                        <a href="<?php echo e(url('/support-ticket')); ?>"><i class="ti-headphone-alt"></i><?php echo e(__('ticket.support_ticket')); ?></a>
                                                    <?php endif; ?>
                                                <?php elseif($element->type == 'link'): ?>
                                                    <a href="<?php echo e($element->link); ?>"><i class="ti-headphone-alt"></i><?php echo e($element->title); ?></a>
                                                <?php elseif($element->type == 'category'): ?>
                                                    <a
                                                        href="<?php echo e(route('frontend.category-product',['slug' => $element->category->slug, 'item' =>'category'])); ?>"><i
                                                            class="fas fa-bible"></i><?php echo e($element->title); ?></a>
                                                <?php elseif($element->type == 'brand'): ?>
                                                    <a
                                                        href="<?php echo e(route('frontend.category-product',['slug' => $element->brand->slug, 'item' =>'brand'])); ?>"><i
                                                            class="fas fa-code-branch"></i><?php echo e($element->title); ?></a>
                                                <?php elseif($element->type == 'tag'): ?>
                                                    <a
                                                        href="<?php echo e(route('frontend.category-product',['slug' => $element->tag->name, 'item' =>'tag'])); ?>"><i
                                                            class="fas fa-tag"></i><?php echo e($element->title); ?></a>
                                                <?php elseif($element->type == 'product' && @$element->product): ?>
                                                    <a href="<?php echo e(route('frontend.item.show',@$element->product->slug)); ?>"><i
                                                            class="fa fa-product-hunt"></i><?php echo e($element->title); ?></a>
                                                <?php elseif($element->type == 'page' && $element->page->status == 1): ?>
                                                    <?php if(!isModuleActive('Lead') && $element->page->module == 'Lead'): ?>
                                                        <?php continue; ?>
                                                    <?php endif; ?>
                                                    <a  href="<?php echo e(url(@$element->page->slug)); ?>">
                                                        <i class="fa fa-link"></i>
                                                        <?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?>

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

                                            <a href="<?php echo e(route('frontend.notifications')); ?>"><i class="ti-bell"></i><?php echo e(__('common.notifications')); ?></a>

                                        <?php endif; ?>


                                    </div>

                                    <a href="<?php echo e(route('logout')); ?>" class="log_out"><i class="ti-shift-right"></i><?php echo e(__('defaultTheme.log_out')); ?> </a>
                                    <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" class="d-none">
                                        <?php echo csrf_field(); ?>
                                    </form>

                                    <?php endif; ?>
                                </div>
                            </div>
                        </li>
                        <?php elseif($element->type == 'link'): ?>
                        <li>
                            <a href="<?php echo e($element->link); ?>"><?php echo e($element->title); ?></a>
                        </li>

                        <?php elseif($element->type == 'page' && $element->page->status == 1): ?>
                            <?php if(!isModuleActive('Lead') && $element->page->module == 'Lead'): ?>
                                <?php continue; ?>
                            <?php else: ?>
                                <li><a  href="<?php echo e(url(@$element->page->slug)); ?>"><?php echo e(ucfirst(\Illuminate\Support\Str::limit($element->title, 25, $end='...'))); ?></a></li>
                            <?php endif; ?>
                        <?php elseif($element->type == 'category'): ?>

                        <li>
                            <a
                                href="<?php echo e(route('frontend.category-product',['slug' => $element->category->slug, 'item' =>'category'])); ?>">
                                <i class="fas fa-bible"></i><?php echo e($element->title); ?></a>
                        </li>

                        <?php elseif($element->type == 'brand'): ?>
                        <li>
                            <a
                                href="<?php echo e(route('frontend.category-product',['slug' => $element->brand->slug, 'item' =>'brand'])); ?>">
                                <i class="fas fa-code-branch"></i><?php echo e($element->title); ?></a>
                        </li>
                        <?php elseif($element->type == 'tag'): ?>
                        <li>
                            <a
                                href="<?php echo e(route('frontend.category-product',['slug' => $element->tag->name, 'item' =>'tag'])); ?>">
                                <i class="fas fa-tag"></i><?php echo e($element->title); ?></a>
                        </li>
                        <?php elseif($element->type == 'product' && @$element->product): ?>
                        <li>
                            <a href="<?php echo e(route('frontend.item.show',@$element->product->slug)); ?>"> <i
                                    class="fa fa-product-hunt"></i><?php echo e($element->title); ?></a>
                        </li>

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


                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /home/penastud/public_html/mart/resources/views/frontend/default/partials/_submenu.blade.php ENDPATH**/ ?>