<div class="navs-container navbar-fixed-top">
    <div class="top_nav bg-white">
        <div class="container">
            <div class="in-flex">
                <a class="navbar-brand" href="<?php echo e(route('home')); ?>">
                    <img src="<?php echo e(url('')); ?>/assets/web/images/logo.png" class="logo" alt=""/>
                </a>
                <div class="nav_end d-flex flex-column">
                    <div class="top_icons align-items-center d-flex mb-3 justify-content-end w-100">
                        <div class="dropdown me-4">
                            <button class="currency_butn text-dark dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
                                <img src="<?php echo e(asset($currency->image)); ?>" class="icon me-2" alt=""/>  <?php echo e($currency->name); ?>

                            </button>
                            <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
                                <?php $__currentLoopData = $header_countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($currency->id != $row->id): ?>
                                        <li>
                                            <a class="dropdown-item" href="<?php echo e(route('currency.set',$row->id)); ?>"><?php echo e($row->name); ?></a>
                                        </li>
                                    <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        </div>
                        <div class="search_box">
                            <form class="form" action="<?php echo e(route('search')); ?>">
                                <div class="form-group mb-0">
                                    <input name="product" onkeyup="productSearch(this)" type="text" <?php if(isset($request)): ?> value="<?php echo e($request->product); ?>" <?php endif; ?> class="form-control" id="searchInput" placeholder="What are you looking for.."/>
                                    <button class="search_butn" id="searchButn" type="submit"><i class="fal fa-search mx-0"></i></button>
                                    <div class="prodItemsBox" id="sampleSearch">

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

                        <?php if(getCurrentLocale() == 'ar'): ?>
                            <a href="<?php echo e(LaravelLocalization::getLocalizedUrl('en')); ?>" class="lng text-dark ps-3 ms-3 border-start border-1"> EN </a>
                        <?php else: ?>
                            <a href="<?php echo e(LaravelLocalization::getLocalizedUrl('ar')); ?>" class="lng text-dark ps-3 ms-3 border-start border-1"> AR </a>
                        <?php endif; ?>

                    </div>
                    <div class="bottom_icons d-flex align-items-center justify-content-end">
                        <div class="dropdown me-2">
                            <button class="butn sm_butn primary_butn rounded-circle color-primary" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
                                <i class="fal fa-user mx-0"></i>
                            </button>
                            <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
                                <?php if(\Auth::user()): ?>
                                    <li><a class="dropdown-item" href="<?php echo e(route('profile')); ?>"><?php echo e(__('web.profile')); ?></a></li>
                                    <li><a class="dropdown-item" href="<?php echo e(route('logout')); ?>"><?php echo e(__('web.logout')); ?></a></li>
                                <?php else: ?>
                                    <li><a class="dropdown-item" href="<?php echo e(route('login')); ?>"><?php echo e(__('web.login')); ?></a></li>
                                    <li><a class="dropdown-item" href="<?php echo e(route('regist')); ?>"><?php echo e(__('web.new_acc')); ?></a></li>
                                <?php endif; ?>
                            </ul>
                        </div>
                        <a href="<?php echo e(route('product.carts')); ?>" class="butn sm_butn primary_butn rounded-circle color-primary me-2">
                            <i class="fal fa-shopping-cart mx-0"></i>
                            <?php if($count_cart): ?><span class="num"><?php echo e($count_cart); ?></span><?php endif; ?>
                        </a>
                        <a href="<?php echo e(route('product.favorites')); ?>" class="butn sm_butn primary_butn rounded-circle color-primary me-2">
                            <i class="fal fa-heart mx-0"></i>
                            <?php if($count_fav): ?><span class="num"><?php echo e($count_fav); ?></span><?php endif; ?>
                        </a>
                        <a href="<?php echo e(route('profile')); ?>?notification=on" class="butn sm_butn primary_butn rounded-circle color-primary me-0">
                            <i class="fal fa-bell mx-0"></i>
                            <?php if($count_notifications): ?><span class="num"><?php echo e($count_notifications); ?></span><?php endif; ?>
                        </a>

                    </div>

                </div>
            </div>
        </div>
    </div>
    <!--Start main-nav-->
    <nav class="navbar navbar-expand-lg navbar-light bg-dark">
        <div class="container">
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <form>
                    <ul class="navbar-nav  mb-2 mb-lg-0">
                        <li class="nav-item ">
                            <a class="nav-link active" href="<?php echo e(route('home')); ?>">home</a>
                        </li>
                        <li class="nav-item ">
                            <a class="nav-link" href="<?php echo e(route('aboutus')); ?>">about us</a>
                        </li>
                        <?php $__currentLoopData = $nav_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if(count($category->models) > 0): ?>
                                <li class="nav-item has_dropdown">
                                    <a class="nav-link" style="cursor: pointer"><?php echo e($category->name); ?></a>
                                    <div class="drop_down d-flex flex-wrap ">
                                        <?php $__currentLoopData = $category->models; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $model): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <a href="<?php echo e(route('filter',$model->id)); ?>" class="link_item">
                                                <img src="<?php echo e(asset($model->image)); ?>" class="categ_img" alt=""/>
                                                <?php echo e($model->descriptions()->name); ?>

                                            </a>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </li>
                            <?php else: ?>
                                <?php if(count($category->sampleProduct) == 0): ?>
                                    <li class="nav-item ">
                                        <a class="nav-link" href="<?php echo e(route('filter',$category->id)); ?>"><?php echo e($category->name); ?></a>
                                    </li>
                                <?php else: ?>
                                    <li class="nav-item has_dropdown has_search_dropdown">
                                        <a class="nav-link" href="#"><?php echo e($category->name); ?></a>
                                        <div class="prodItemsBox">
                                            <?php $__currentLoopData = $category->sampleProduct; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php echo $__env->make('web.pages.components.product.navbar',['product' => $product], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <a href="<?php echo e(route('filter',$category->id)); ?>" class="butn primary_butn w-100 more_butn"><b>See More</b></a>
                                        </div>

                                    </li>
                                <?php endif; ?>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php if(!\Auth::user()): ?>
                            <li class="nav-item ">
                                <a class="nav-link" href="<?php echo e(route('regist.company')); ?>">Wholesale</a>
                            </li>
                        <?php endif; ?>
                        <li class="nav-item ">
                            <a class="nav-link" href="<?php echo e(route('contactus')); ?>">contact us</a>
                        </li>
                    </ul>
                </form>
            </div>
        </div>
    </nav>
</div>
<?php /**PATH /Applications/MAMP/htdocs/city/resources/views/web/layouts/menu.blade.php ENDPATH**/ ?>