<div class="navs-container">

    <!--Start top_nav -->
    <div class="top_nav">
        <div class="container">
            <div class="row justify-content-between align-items-center">
                <div class="col-lg-3">
                    <a class="navbar-brand" href="<?php echo e(route('web.home')); ?>">
                        <img src="<?php echo e(url('')); ?>/assets/web/images/logo.png" class="logo" alt="" />
                    </a>
                </div>
                <div class="col-lg-5">
                    <div class="search_box">
                        <form method="GET" action="<?php echo e(route('web.search')); ?>">
                            <div class="form-group d-flex align-items-center">
                                <select name="category_id" class="form-select form-control select_categ">
                                    <option value=""><?php echo e(__('web.all_categories')); ?></option>
                                    <?php $__currentLoopData = $main_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($row->id); ?>"><?php echo e($row->title); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <input name="search" class="form-control search_input" placeholder="<?php echo e(__('web.looking_for')); ?>" type="text"/>
                                <button class="search_butn"> <i class="fa-regular fa-magnifying-glass"></i> </button>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="nav_end d-flex align-items-center justify-content-end">
                        <div class="dropdown me-2">
                            <button class="butn sm_butn primary_butn" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
                                <i class="fa-solid 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('web.profile')); ?>"> <?php echo e(__('web.profile')); ?> </a></li>
                                    <li><a class="dropdown-item" href="<?php echo e(route('web.logout')); ?>"> <?php echo e(__('web.logout')); ?> </a></li>
                                <?php else: ?>
                                    <li><a class="dropdown-item" href="<?php echo e(route('web.login')); ?>"> <?php echo e(__('web.login')); ?> </a></li>
                                    <li><a class="dropdown-item" href="<?php echo e(route('web.regist')); ?>"> <?php echo e(__('web.regist')); ?> </a></li>
                                <?php endif; ?>
                            </ul>
                        </div>
                        <?php if(auth()->user()): ?>
                        <a href="<?php echo e(route('web.favorite')); ?>" class="butn primary_butn sm_butn me-2">
                            <i class="fa-solid fa-heart mx-0"></i>
                        </a>
                        <a href="<?php echo e(route('web.notification')); ?>" class="butn primary_butn sm_butn me-2">
                            <i class="fa-solid fa-bell mx-0"></i>
                        </a>
                        <?php endif; ?>
                        <a href="<?php echo e(route('cart.index')); ?>" class="butn secondary_butn cart_butn me-2">
                            <i class="fa-solid fa-cart-shopping"></i>  <?php echo e(__('web.cart')); ?>

                        </a>


                        <div class="dropdown ">
                            <button class="lang_butn px-2 dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
                                <img src="<?php echo e(url('')); ?>/assets/web/images/icons/<?php echo e(getCurrentLocale() == 'ar'? 'lang-1.svg' : 'lang-2.svg'); ?>" style="width: 2pc" class="icon me-1" alt="" />   <?php echo e(__('web.languages.'.currentLanguage()->local)); ?>

                            </button>
                            <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
                                <li><a class="dropdown-item" href="<?php echo e(LaravelLocalization::getLocalizedUrl('ar')); ?>">  العربية   </a></li>
                                <li><a class="dropdown-item" href="<?php echo e(LaravelLocalization::getLocalizedUrl('en')); ?>">  English   </a></li>
                            </ul>
                        </div>

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

    <!--Start main-nav-->
    <nav class="navbar navbar-expand-lg navbar-light">
        <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">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                    <li class="nav-item">
                        <a class="nav-link " href="<?php echo e(route('web.home')); ?>"><?php echo e(__('web.home')); ?></a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo e(route('web.aboutus')); ?>"><?php echo e(__('web.aboutus')); ?></a>
                    </li>
                    <li class="nav-item has_dropdown ">
                        <a class="nav-link" href="<?php echo e(route('web.product')); ?>"><?php echo e(__('web.categories')); ?></a>
                        <div class="drop_down">
                            <?php $__currentLoopData = $main_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <a href="<?php echo e(route('web.product') . '?category_id='.$row->id); ?>"> <?php echo e($row->title); ?> </a>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo e(route('contactus.index')); ?>"><?php echo e(__('web.contactus')); ?></a>
                    </li>

                </ul>
                <a href="tel://<?php echo e($settings['site_phone']); ?>" class="phone_link">
                    <?php echo e($settings['site_phone']); ?> <i class="fa-regular fa-mobile"></i>
                </a>
            </div>
        </div>
    </nav>

</div>
<?php /**PATH /Applications/MAMP/htdocs/modern/resources/views/web/layouts/menu.blade.php ENDPATH**/ ?>