<!-- ============================================== TOP MENU ============================================== -->
<div class="top-bar animate-dropdown">
    <div class="container">
        <div class="header-top-inner">
            <div class="cnt-account">
                <ul class="list-unstyled">
                    <?php if(Auth::check()): ?>
                        <li><a href="<?php echo e(route('front.account')); ?>"><i class="icon fa fa-user"></i><?php echo app('translator')->getFromJson('My Account'); ?></a></li>
                        <li><a href="<?php echo e(url('/products/wishlist')); ?>"><i class="icon fa fa-heart"></i><?php echo app('translator')->getFromJson('Wishlist'); ?></a></li>
                    <?php endif; ?>
                        <li><a href="<?php echo e(url('/checkout/shipping-details')); ?>"><i class="icon fa fa-check"></i> <?php echo app('translator')->getFromJson('Checkout'); ?></a></li>
                        <li><a href="<?php echo e(url('/cart')); ?>"><i class="icon fa fa-shopping-cart"></i><?php echo app('translator')->getFromJson('My Cart'); ?></a></li>
                    <?php if(Auth::check()): ?>
                        <li class="dropdown dropdown-small user_account_dropdown">
                            <a href="#" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown">
                                <i class="icon fa fa-user"></i>
                                <span class="value"><?php echo e(Auth::user()->name); ?></span>
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo e(route('front.account')); ?>"><i class="icon fa fa-user"></i><?php echo app('translator')->getFromJson('Account Overview'); ?></a></li>
                                <li><a href="<?php echo e(route('front.orders.index')); ?>"><i class="icon fa fa-shopping-cart"></i><?php echo app('translator')->getFromJson('Orders'); ?></a></li>
                                <li><a href="<?php echo e(route('front.addresses.index')); ?>"><i class="icon fa fa-truck"></i><?php echo app('translator')->getFromJson('Addresses'); ?></a></li>
                                <li><a href="<?php echo e(route('front.settings.profile')); ?>"><i class="icon fa fa-cog"></i><?php echo app('translator')->getFromJson('Edit Profile'); ?></a></li>
                                <?php if(Auth::user()->vendor): ?>
                                    <li><a href="<?php echo e(route('front.vendor.profile')); ?>"><i class="icon fa fa-user"></i><?php echo app('translator')->getFromJson('Vendor Profile'); ?></a></li>
                                <?php endif; ?>
                                <?php if(Auth::user()->role): ?>
                                    <?php if(Auth::user()->vendor && isset(Auth::user()->vendor->approved) && Auth::user()->isApprovedVendor()): ?>
                                        <li><a href="<?php echo e(url('/manage/vendor/dashboard')); ?>"><i class="icon fa fa-wrench mr-5"></i><?php echo app('translator')->getFromJson('Manage'); ?></a></li>
                                    <?php elseif(Auth::user()->isSuperAdmin() || Auth::user()->can('view-dashboard', \App\Other::class) ): ?>
                                        <li><a href="<?php echo e(url('/manage')); ?>"><i class="fa fa-wrench mr-5"></i><?php echo app('translator')->getFromJson('Manage'); ?></a></li>
                                    <?php endif; ?>
                                <?php elseif(Auth::user()->vendor && isset(Auth::user()->vendor->approved) && Auth::user()->isApprovedVendor()): ?>
                                    <li>
                                        <a href="<?php echo e(url('/manage/vendor/dashboard')); ?>" class="userAccount-item">
                                            <i class="icon fa fa-wrench mr-5"></i><?php echo app('translator')->getFromJson('Manage'); ?>
                                        </a>
                                    </li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <li><a href="Javascript:void(0)" onclick="logout();"><i class="icon fa fa-sign-out"></i> <?php echo app('translator')->getFromJson('Logout'); ?></a></li>
                        <form id="logout_form" action="<?php echo e(route('logout')); ?>" method="POST">
                            <?php echo e(csrf_field()); ?>

                        </form>
                        <script>
                            function logout() {
                                var logoutForm = $('#logout_form');
                                if (!logoutForm.hasClass('form-submitted')) {
                                    logoutForm.addClass('form-submitted');
                                    logoutForm.submit();
                                }
                            }
                        </script>
                    <?php else: ?>
                        <li><a href="<?php echo e(url('/login')); ?>"><i class="icon fa fa-lock"></i><?php echo app('translator')->getFromJson('Login'); ?></a></li>
                        <li><a href="<?php echo e(url('/register')); ?>"><i class="icon fa fa-sign-in"></i><?php echo app('translator')->getFromJson('Sign up'); ?></a></li>
                   <?php endif; ?>
                </ul>
            </div>
            <!-- /.cnt-account -->

            <div class="cnt-block">
                <ul class="list-unstyled list-inline">
                    <li class="dropdown dropdown-small">
                        <a href="Javascript:void(0)" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown">
                            <i class="fa fa-money"></i>
                            <span class="value"> <?php echo e(config('currency.default')); ?> </span>
                        </a>
                    </li>
                    <?php if(config('settings.allow_multi_language')): ?>
                        <?php if(count(\App\Helpers\Helper::supportedLanguages()) > 1): ?>
                            <li class="dropdown dropdown-small">
                                <a href="#" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown">
                                    <i class="fa fa-language"></i>
                                    <span class="value">
                                        <?php if(isset(\App\Helpers\Helper::supportedLanguages()[session('language')])): ?>
                                            <?php echo e(\App\Helpers\Helper::supportedLanguages()[session('language')]); ?>

                                        <?php else: ?>
                                            <?php echo e(\App\Helpers\Helper::supportedLanguages()[\App::getLocale()]); ?>

                                        <?php endif; ?>
                                    </span>
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <?php $__currentLoopData = \App\Helpers\Helper::supportedLanguages(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li>
                                            <a href="<?php echo e(route('front.index', [$key])); ?>"><?php echo e($value); ?></a>
                                        </li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            </li>
                        <?php endif; ?>
                        <?php else: ?>
                        <li class="dropdown dropdown-small">
                            <a href="Javascript:void(0)" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown">
                                <i class="fa fa-language"></i>
                                <span class="value">
                                    <?php if(isset(\App\Helpers\Helper::supportedLanguages()[session('language')])): ?>
                                        <?php echo e(\App\Helpers\Helper::supportedLanguages()[session('language')]); ?>

                                    <?php else: ?>
                                        <?php echo e(\App\Helpers\Helper::supportedLanguages()[\App::getLocale()]); ?>

                                    <?php endif; ?>
                                </span>
                            </a>
                        </li>
                    <?php endif; ?>
                </ul>
                <!-- /.list-unstyled -->
            </div>
            <!-- /.cnt-cart -->
            <div class="clearfix"></div>
        </div>
        <!-- /.header-top-inner -->
    </div>
    <!-- /.container -->
</div>
<!-- /.header-top -->
<!-- ============================================== TOP MENU : END ============================================== -->
<div class="main-header">
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-3 logo-holder">
                <!-- ============================================================= LOGO ============================================================= -->
                <div class="logo">
                    <a href="<?php echo e(url('/')); ?>" title="<?php echo e(session('location')); ?>">
                        <?php if(config('settings.site_logo_enable')): ?>
                            <img class=" img-responsive" id="site-logo" alt="<?php echo e(config('settings.site_logo_name') . ' Logo'); ?>" src="<?php echo e(route('imagecache', ['large', config('settings.site_logo')])); ?>">&nbsp;
                        <?php endif; ?>
                    </a>
                </div>
                <!-- /.logo -->
                <!-- ============================================================= LOGO : END ============================================================= --> </div>
            <!-- /.logo-holder -->
            <div class="col-xs-12 col-sm-12 col-md-7 top-search-holder">
                <!-- /.contact-row -->
                <!-- ============================================================= SEARCH AREA ============================================================= -->
                <div class="search-area">
                    <?php echo Form::open(['method'=>'get', 'action'=>['FrontController@search'], 'role'=>'search', 'class'=>'navbar-form p-0 m-a', 'autocomplete'=>'off' ,'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']); ?>

                        <div class="control-group">
                            <?php if(count($root_categories) > 0): ?>
                                <ul class="categories-filter animate-dropdown">
                                    <li class="dropdown"> <a class="dropdown-toggle"  data-toggle="dropdown" href="category.html"> <?php echo app('translator')->getFromJson('Categories'); ?> <b class="caret"></b></a>
                                        <ul class="dropdown-menu" role="menu" >
                                            <?php $__currentLoopData = $root_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($category->is_active): ?>
                                                    <li><a href="<?php echo e(route('front.category.show', [$category->slug])); ?>"><?php echo e($category->name); ?></a></li>
                                                <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </ul>
                                    </li>
                                </ul>
                            <?php endif; ?>
                                <?php echo Form::text('keyword', null, ['id'=>'search-keyword' ,'class'=>'search-field', 'placeholder'=>__('Search here...'), 'required', 'autofocus']); ?>

                                <?php echo Form::button(null, ['type' => 'submit', 'class'=>'search-button', 'name'=>'submit_button']); ?>


                        </div>
                    <?php echo Form::close(); ?>

                </div>
                <!-- /.search-area -->
                <!-- ============================================================= SEARCH AREA : END ============================================================= --> </div>
            <!-- /.top-search-holder -->

            <div class="col-xs-12 col-sm-12 col-md-2 animate-dropdown top-cart-row">
                <!-- ============================================================= SHOPPING CART DROPDOWN ============================================================= -->
                <div class="dropdown dropdown-cart">
                    <a href="#" class="dropdown-toggle lnk-cart dropdown-cart-anchor" data-toggle="dropdown">
                        <div class="items-cart-inner">
                            <div class="basket"> <i class="glyphicon glyphicon-shopping-cart"></i> </div>
                            <div class="basket-item-count"><span class="count"><?php echo e(Cart::content()->count()); ?></span></div>
                            <div class="total-price-basket">
                                <span class="lbl"><?php echo app('translator')->getFromJson('cart'); ?> -</span>
                                <span class="total-price">
                                    <span class="value"><?php echo e(currency_format(Cart::total())); ?></span>
                                </span>
                            </div>
                        </div>
                    </a>
                    <ul class="dropdown-menu custom_cart_dropdown">

                    </ul>
                    <!-- /.dropdown-menu-->
                </div>
                <!-- /.dropdown-cart -->
                <!-- ============================================================= SHOPPING CART DROPDOWN : END============================================================= --> </div>
            <!-- /.top-cart-row -->
            </div>
        <!-- /.row -->
    </div>
    <!-- /.container -->

</div>
<!-- /.main-header -->

    