
<header class="header shop <?php echo e(request()->is('/') ? 'home-header' : 'inner-header'); ?> ">
    <!-- Topbar -->
    
    <div class="topbar">
        <div class="container">
            <div class="row">
                <div class="col-lg-6 col-md-12 col-12">
                    <!-- Top Left -->
                    <div class="top-left">
                        <ul class="list-main">
                            <?php
                                $settings=DB::table('settings')->get();
                                
                            ?>
                            <li><i class="ti-headphone-alt"></i><?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($data->phone); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></li>
                            <li><i class="ti-email"></i> <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($data->email); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></li>
                        </ul>
                    </div>
                    <!--/ End Top Left -->
                </div>
                <div class="col-lg-6 col-md-12 col-12">
                    <!-- Top Right -->
                    <div class="right-content">
                        <ul class="list-main">
                        <li><i class="ti-location-pin"></i> <a href="<?php echo e(route('order.track')); ?>">Track Order</a></li>
                            
                            <?php if(auth()->guard()->check()): ?> 
                                <?php if(Auth::user()->role=='admin'): ?>
                                    <li><i class="ti-user"></i> <a href="<?php echo e(route('admin')); ?>"  target="_blank">Dashboard</a></li>
                                <?php else: ?> 
                                    <li><i class="ti-user"></i> <a href="<?php echo e(route('user')); ?>"  target="_blank">Dashboard</a></li>
                                <?php endif; ?>
                                <li><i class="ti-power-off"></i> <a href="<?php echo e(route('user.logout')); ?>">Logout</a></li>

                            <?php else: ?>
                                <li><i class="ti-power-off"></i><a href="<?php echo e(route('login.form')); ?>">Login /</a> <a href="<?php echo e(route('register.form')); ?>">Register</a></li>
                            <?php endif; ?>
                        </ul>
                    </div>
                    <!-- End Top Right -->
                </div>
            </div>
        </div>
    </div>
    <!-- End Topbar -->

   
 
    <div class="middle-inner">
        
        <div class="container">
            <div class="row">
                <div class="col-lg-2 col-md-2 col-12">
                <div class="logo" >
                        <?php
                            $settings=DB::table('settings')->get();
                        ?>                    
                        <a href="<?php echo e(route('home')); ?>"><img src="<?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($data->logo); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>" alt="logo" class="logo"></a>
                    </div>
                    <!-- Search Form -->
                    <div class="search-top-m">
                        <div class="top-search-m"><a href="#0"><i class="ti-search"></i></a></div>
                        <!-- Search Form -->
                        <div class="search-top-m">
                            <form class="search-form">
                                <input type="text" placeholder="Search here..." name="search">
                                <button value="search" type="submit"><i class="ti-search"></i></button>
                            </form>
                        </div>
                        <!--/ End Search Form -->
                    </div>
                    <!--/ End Search Form -->
                     <div class="right-bar">
                        <!-- Search Form -->
                        <div class="sinlge-bar shopping">
                            <?php if(auth()->guard()->check()): ?> 
                                <?php if(Auth::user()->role=='admin'): ?>
                                    <i class="" ></i> <a href="<?php echo e(route('admin')); ?>"  target="_blank"  class="fa fa-dashboard" id="user"></a>
                                <?php else: ?> 
                                    <i class="" ></i> <a href="<?php echo e(route('user')); ?>"  target="_blank" class="fa fa-dashboard" id="user"></a>
                                <?php endif; ?>

                            <?php else: ?>
                           <a href="<?php echo e(route('login.form')); ?>"  class="fa fa-user-o" id="user" ></a> <a href="<?php echo e(route('register.form')); ?>"></a>
                            <?php endif; ?>
                            <!-- Shopping Item -->
                            
                            <!--/ End Shopping Item -->
                        </div>
                        
                        
                        <div class="sinlge-bar shopping">
                            <a href="<?php echo e(route('cart')); ?>" class="single-icon"><i class="ti-bag" id="user"></i> <span class="total-count"><?php echo e(Helper::cartCount()); ?></span></a>
                            <!-- Shopping Item -->
                            <?php if(auth()->guard()->check()): ?>
                                <div class="shopping-item">
                                    <div class="dropdown-cart-header">
                                        <span><?php echo e(count(Helper::getAllProductFromCart())); ?> Items</span>
                                        <a href="<?php echo e(route('cart')); ?>">View Cart</a>
                                    </div>
                                    <ul class="shopping-list">
                                        
                                            <?php $__currentLoopData = Helper::getAllProductFromCart(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $photo=explode(',',$data->product['photo']);
                                                    ?>
                                                    <li>
                                                        <a href="<?php echo e(route('cart-delete',$data->id)); ?>" class="remove" title="Remove this item"><i class="fa fa-remove"></i></a>
                                                        <a class="cart-img" href="#"><img src="<?php echo e($photo[0]); ?>" alt="<?php echo e($photo[0]); ?>"></a>
                                                        <h4><a href="<?php echo e(route('product-detail',$data->product['slug'])); ?>" target="_blank"><?php echo e($data->product['title']); ?></a></h4>
                                                        <p class="quantity"><?php echo e($data->quantity); ?> x - <span class="amount">$<?php echo e(number_format($data->price,2)); ?></span></p>
                                                    </li>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                    <div class="bottom">
                                        <div class="total">
                                            <span>Total</span>
                                            <span class="total-amount">$<?php echo e(number_format(Helper::totalCartPrice(),2)); ?></span>
                                        </div>
                                        <a href="<?php echo e(route('checkout')); ?>" class="btn animate">Checkout</a>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <!--/ End Shopping Item -->
                        </div>
                    </div>
                    <div class="mobile-nav"></div>
                </div>
                <div class="col-lg-8 col-md-7 col-12">
                </div>
            </div>
        </div>

    <!-- Header Inner -->
    <div class="header-inner">
        <div class="container">
            <div class="cat-nav-head">
                <div class="row">
                    <div class="col-lg-12 col-12">
                            <!-- <?php
                                $randomNumber = rand(1,5);
                            ?>
                            <div class="logo">
                                <img class="mt-1 " width="100%"	height="100px" style="border-radius: 35px;" src="<?php echo e(asset('frontend/img/add' . $randomNumber . '.png')); ?>" alt="" />
                            </div> -->
                    <!--/ End Logo -->
                        <div class="menu-area">
                          
                            <!-- Main Menu -->
                            <nav class="navbar navbar-expand-lg">
                                <div class="navbar-collapse">	
                                    <div class="nav-inner">	
                                        <ul class="nav main-menu menu navbar-nav">
                                        <li class="nav-item dropdown">
                                                <a class="" href="<?php echo e(route('product-Area')); ?>" id="navbarDropdown" >
                                                  Shop                                                 </a>
                                                <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                                                    <a class="dropdown-item " href="<?php echo e(route('product-lists')); ?>">product-lists</a>
                                                    <a class=" <?php echo e(Request::path()=='product-grids' ? 'active' : ''); ?>" href="<?php echo e(route('product-grids')); ?>">product-grids</a>
                                                </div>
                                            </li>

                                            <li class="nav-item dropdown">
                                                <a class="nav-link <?php echo e(Request::path()=='about-us' || Request::path()=='Privacy-Policy' ? 'active' : ''); ?>" href="<?php echo e(route('about-us')); ?>" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                  learn
                                                </a>
                                                <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                                                    <a class="dropdown-item " href="<?php echo e(route('about-us')); ?>">About Us </a>
                                                    <a class=" " href="<?php echo e(route('Privacy-Policy')); ?>">Privacy Policy</a>
                                                    <a class=" <?php echo e(Request::path()=='contact' ? 'active' : ''); ?>" href="<?php echo e(route('contact')); ?>">Contact Us</a>
                                                    
                                                </div>
                                            </li>
                                         <li class="nav-item dropdown">
                                                <a class="nav-link <?php echo e(Request::path()=='about-us' || Request::path()=='Privacy-Policy' ? 'active' : ''); ?>" href="<?php echo e(route('about-us')); ?>" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                  location
                                                </a>
                                                <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                                                    <a class="dropdown-item <?php echo e(Request::path()=='about-us' ? 'active' : ''); ?>" href="<?php echo e(route('locations')); ?>">Location dejlah</a>
                                                    <a class=" <?php echo e(Request::path()=='contact' ? 'active' : ''); ?>" href="<?php echo e(route('contact')); ?>">Contact Us</a>
                                                    
                                                </div>
                                            </li>
                                            <li class="nav-item"><a href="<?php echo e(route('whoalsals')); ?>">Wholesale</a></li>	
                                            <li class="nav-item"><a href="<?php echo e(route('blog')); ?>">Journal</a></li>	             
                                        
                                        
                                     <div class="under-inn">
                                            <br>
                                            <br>
                                          
                                            <li class="<?php echo e(Request::path()=='blog' ? 'active' : ''); ?>"><a href="<?php echo e(route('whoalsals')); ?>">Wholesale</a></li>	
                                            <li class="<?php echo e(Request::path()=='blog' ? 'active' : ''); ?>"><a href="">FAQ</a></li>
                                            <li class="<?php echo e(Request::path()=='blog' ? 'active' : ''); ?>"><a href="">Contact</a></li>
                                            <br>
                                            <br>
                                            
                                            <div class="social-icon">
                                            <i class="" ></i> <a href=""  target="_blank"  class="fa fa-instagram" ></a>
                                            <i class="" ></i> <a href=""  target="_blank"  class="fa fa-youtube"  ></a>
                                            <i class="" ></i> <a href=""  target="_blank"  class="fa fa-facebook" ></a>
                                            </div>
                                            <br>
                                            

                                      </div>
                                      
                    <div class="right-bar-h">

                        <!-- Search Form -->
                        <div class="sinlge-bar shopping">
                            <?php if(auth()->guard()->check()): ?> 
                                <?php if(Auth::user()->role=='admin'): ?>
                                    <i class="" ></i> <a href="<?php echo e(route('admin')); ?>"  target="_blank"  class="fa fa-dashboard" id="user"></a>
                                <?php else: ?> 
                                    <i class="" ></i> <a href="<?php echo e(route('user')); ?>"  target="_blank" class="fa fa-dashboard" id="user"></a>
                                <?php endif; ?>

                            <?php else: ?>
                           <a href="<?php echo e(route('login.form')); ?>"  class="fa fa-user-o" id="user" ></a> <a href="<?php echo e(route('register.form')); ?>"></a>
                            <?php endif; ?>
                            <!-- Shopping Item -->
                            
                            <!--/ End Shopping Item -->
                        </div>
                        
                                                <div class="sinlge-bar shopping">
                            <a href="<?php echo e(route('cart')); ?>" class="single-icon"><i class="ti-bag"></i> <span class="total-count"><?php echo e(Helper::cartCount()); ?></span></a>
                            <!-- Shopping Item -->
                            <?php if(auth()->guard()->check()): ?>
                                <div class="shopping-item">
                                    <div class="dropdown-cart-header">
                                        <span><?php echo e(count(Helper::getAllProductFromCart())); ?> Items</span>
                                        <a href="<?php echo e(route('cart')); ?>">View Cart</a>
                                    </div>
                                    <ul class="shopping-list">
                                        
                                            <?php $__currentLoopData = Helper::getAllProductFromCart(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php
                                                        $photo=explode(',',$data->product['photo']);
                                                    ?>
                                                    <li>
                                                        <a href="<?php echo e(route('cart-delete',$data->id)); ?>" class="remove" title="Remove this item"><i class="fa fa-remove"></i></a>
                                                        <a class="cart-img" href="#"><img src="<?php echo e($photo[0]); ?>" alt="<?php echo e($photo[0]); ?>"></a>
                                                        <h4><a href="<?php echo e(route('product-detail',$data->product['slug'])); ?>" target="_blank"><?php echo e($data->product['title']); ?></a></h4>
                                                        <p class="quantity"><?php echo e($data->quantity); ?> x - <span class="amount">$<?php echo e(number_format($data->price,2)); ?></span></p>
                                                    </li>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                    <div class="bottom">
                                        <div class="total">
                                            <span>Total</span>
                                            <span class="total-amount">$<?php echo e(number_format(Helper::totalCartPrice(),2)); ?></span>
                                        </div>
                                        <a href="<?php echo e(route('checkout')); ?>" class="btn animate">Checkout</a>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <!--/ End Shopping Item -->
                            <div class="search-top">
                        <div class="top-search"><a href="#0"><i class="ti-search"></i></a></div>
                        <!-- Search Form -->
                        <div class="search-top">
                            <form class="search-form">
                                <input type="text" placeholder="Search here..." name="search">
                                <button value="search" type="submit"><i class="ti-search"></i></button>
                            </form>
                        </div>

                        </div>
                    </div>
                    </ul>
                </div>
            </div>
        </nav>
        <!--/ End Main Menu -->	
    
   </div>
   
</div>

</div>
</div>
</div>
</div>
</div>
    <!--/ End Header Inner -->
    <section class="slider_section position-relative <?php echo e(request()->is('/') ? 'home-header' : 'slider_sec'); ?>">
   
    <div class="slider_bg"></div>
    <div class="container">
      <div class="col-md-6 ml-auto">
        <div class="detail-box">
          <h1> PURE <br><span>YEMENI HONEY</span></h1>
          <p> T HE ESSENCE OF NATURE</p>

        </div>
      </div>
    </div>
  </section>
</header><?php /**PATH C:\xampp\htdocs\dejleh-shop-last\resources\views/frontend/layouts/header.blade.php ENDPATH**/ ?>