

        <div class="main-navbar shadow-sm sticky-top">
        <div class="top-navbar">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-2 my-auto d-none d-sm-none d-md-block d-lg-block">

                    <img src="<?php echo e(asset('/storage/img/logo-e-commerce.png')); ?>" alt="<?php echo e(env('APP_NAME')); ?>" class="mw-100 h-30px h-md-40px" height="40"> 
                    </div>
                    <div class="col-md-5 my-auto">
                        <form action="<?php echo e(route('product')); ?>" method="post" role="search">
                        <?php echo csrf_field(); ?>
                            <div class="input-group">
                                <input type="search" placeholder="Search your product" name="Search_product" id="Search_product" class="form-control" />
                                <button class="btn bg-white" type="submit">
                                    <i class="bi bi-search"></i>
                                </button>
                            </div>
                        </form>
                    </div>
                    <div class="col-md-5 my-auto">
                        <ul class="nav justify-content-end">
                        <?php if(auth()->guard()->guest()): ?>
                             <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('mycart')); ?>">
                                <?php
                                        
                                        $temp_user_id=session()->get('temp_user_id');
                                        $cart = \App\Models\Cart::where('temp_user_id',$temp_user_id)->count();
                                ?>
                                    <i class="bi bi-cart"></i> Cart (<?php echo e($cart); ?>)
                                </a>
                              </li>
                        <?php endif; ?>
                        <?php if(auth()->guard()->check()): ?>
                            <?php
                                        $user=Auth::user();
                                        $user_id=$user->id;
                                        $cart = \App\Models\Cart::where('user_id',$user_id)->count();
                            ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('mycart')); ?>">
                                    <i class="bi bi-shopping-cart"></i> Cart (<?php echo e($cart); ?>)
                                </a>
                              </li>
                        <?php endif; ?>
                        <!--   wishlist       -->
                        <?php if(auth()->guard()->guest()): ?>
                             <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('mywishlist')); ?>">
                                <?php
                                        
                                        $temp_user_id=session()->get('temp_user_id');
                                        $wishlist = \App\Models\Wishlist::where('temp_user_id',$temp_user_id)->count();
                                ?>
                                    <i class="bi bi-heart"></i> Wishlist (<?php echo e($wishlist); ?>)
                                </a>
                              </li>
                        <?php endif; ?>
                        <?php if(auth()->guard()->check()): ?>
                            <?php
                                        $user=Auth::user();
                                        $user_id=$user->id;
                                        $wishlist = \App\Models\Wishlist::where('user_id',$user_id)->count();
                            ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('mywishlist')); ?>">
                                    <i class="bi bi-heart"></i> Wishlist (<?php echo e($wishlist); ?>)
                                </a>
                              </li>
                        <?php endif; ?>
                         <!--  end wishlist       -->
                            <li class="nav-item dropdown">
                            <?php if(auth()->guard()->check()): ?> 
                            <?php
                                $user=Auth::user();
                                $user_id=$user->id;
                                $users = \App\Models\User::where('id',$user_id)->first();
                                $user_name=$users->first_name. " " .$users->last_name ;

                            ?>
                                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                                    <i class="fa fa-user"></i> <?php echo e($user_name); ?>

                                </a>
                             <?php endif; ?>
                             <?php if(auth()->guard()->guest()): ?> 
                                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                                    <i class="fa fa-user"></i> Login
                                </a>
                             <?php endif; ?>
                                <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                <?php if(auth()->guard()->check()): ?>    
                                <li><a class="dropdown-item" href="#"><i class="fa fa-user"></i> Profile</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('myOrder')); ?>"><i class="fa fa-list"></i> My Orders</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('mywishlist')); ?>"><i class="fa fa-heart"></i> My Wishlist</a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('mycart')); ?>"><i class="fa fa-shopping-cart"></i> My Cart</a></li>
                                <?php endif; ?>
                                <?php if(auth()->guard()->guest()): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('login')); ?>"><i class="bi bi-sign-out"></i> login</a></li>
                                <?php endif; ?>
                                <?php if(auth()->guard()->check()): ?>
                                <form method="get" action="<?php echo e(route('logout')); ?>">
                                     <?php echo csrf_field(); ?>
                                     <li><button type="submit" class="dropdown-item">Logout</button></li>
                                          </form>
                                
                                <?php endif; ?>
                                </ul>
                            </li>
                        </ul>

                    </div>
                </div>
            </div>
        </div>
        <nav class="navbar navbar-expand-lg">
            <div class="container-fluid">
                <a class="navbar-brand d-block d-sm-block d-md-none d-lg-none" href="#">
                </a>
                <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('home')); ?>>Home</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href=<?php echo e(route('category')); ?>>All Categories</a>

                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href=<?php echo e(route('product')); ?>>All Products</a>

                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href=<?php echo e(route('newarivel')); ?>>New Arrivals</a>
                        </li>
                        
                        <li class="nav-item">
                            <a class="nav-link" href=<?php echo e(route('hotsalling')); ?>>Hot Salling</a>
                        </li>
                        
                        <li class="nav-item">
                            <a class="nav-link" href=<?php echo e(route('returnPloicy')); ?>>Return Policy</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </div><?php /**PATH C:\wamp64\www\ecommerce\resources\views/include/header.blade.php ENDPATH**/ ?>