<header class="header">
    <div class="header-middle">
        <div class="container">
            <div class="header-left mr-md-4">
                <a href="#" class="mobile-menu-toggle  w-icon-hamburger">
                </a>
                <a href="<?php echo e(url('/')); ?>" class="logo ml-lg-0">
                    <img class="logoimg" src="<?php echo e(asset('web/images/logo/logo.png')); ?>" style="max-height:60px;width:auto;" />
                </a>
                <form method="get" action="#" class="header-search hs-expanded hs-round d-none d-md-flex input-wrapper"><?php echo csrf_field(); ?>
                    <div class="select-box">
                        <select id="category" name="cat">
                            <option value="0">All Categories</option>
                            <?php $__currentLoopData = $cats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e(url('cat-'.$c->id)); ?>"><?php echo e($c->cat_name); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    <input type="text" class="form-control" name="search" id="search"
                        placeholder="Search in..." required />
                    <button class="btn btn-search" type="submit"><i class="w-icon-search"></i></button>
                </form>
            </div>
            
            <div class="header-right ml-4">
                <?php if(auth()->guard('member')->check()): ?>
                <a class="account label-down link" href="<?php echo e(url('dashboard')); ?>" style="margin-right:2.3rem;">
                    <i class="w-icon-account" style="font-size: 2.7rem;"></i>
                    <span class="account-label d-lg-show">Overview</span>
                </a>
                <?php else: ?>
                <a class="account label-down link" href="<?php echo e(url('login')); ?>" style="margin-right:2.3rem;">
                    <i class="w-icon-account" style="font-size: 2.7rem;"></i>
                    <span class="account-label d-lg-show">My Account</span>
                </a>
                <?php endif; ?>

                <div class="dropdown cart-dropdown cart-offcanvas mr-0 mr-lg-2">
                    <div class="cart-overlay"></div>
                    <a href="#" class="cart-toggle label-down link">
                        <i class="w-icon-cart">
                            <span class="cart-count" style="display: block;"><?php echo e($count); ?></span>
                        </i>
                        <span class="cart-label">Cart</span>
                    </a>
                    <div class="dropdown-box">
                        <div class="cart-header">
                            <span>Shopping Cart</span>
                            <a href="#" class="btn-close">Close<i class="w-icon-long-arrow-right"></i></a>
                        </div>
                        <div class="shopping-cart-products-1" style="height: 80% !important;overflow: auto;">
                            <table style="width: 100%;border: 1px solid #80808024;">
                                <thead style="background: #d8d8d8;text-align: left;">
                                    <tr>
                                        <th style="padding-left: 5px;">Image</th>
                                        <th>QTY</th>
                                        <th>Price</th>
                                        <th>Total</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $cartpro; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr style="border-bottom: 1px solid #80808024;">
                                        <td style="display: flex;"><img style="width:50px;" src="<?php echo e(URL::to($cp->image)); ?>"><a style="padding: 0;margin-top: -20px;" href="<?php echo e(url('cdelete/'.$cp->id)); ?>">x</a></td>
                                        <td><?php echo e($cp->qty); ?></td>
                                        <td><?php echo e($cp->price); ?></td>
                                        <td><?php echo e($cp->total); ?></td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                            
                            <div class="cart-total">
                                <label>Sub-Total:</label>
                                <span class="price" style="padding:10px;margin-left:-15px;">Tk. <?php echo e($subtotal); ?></span>
                            </div>
                            
                            <a href="<?php echo e(url('cart')); ?>" class="btn btn-primary text-center" style="width: 92px;">Checkout</a>                                   
                        </div><br>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="header-bottom sticky-content fix-top sticky-header has-dropdown">
        <div class="container">
            <div class="inner-wrap">
                <div class="header-left">
                    <div class="dropdown category-dropdown has-border" data-visible="true">
                        <a href="#" class="category-toggle text-dark" role="button" data-toggle="dropdown"
                            aria-haspopup="true" aria-expanded="true" data-display="static"><i class="w-icon-category"></i><span>Categories</span></a>

                        <div class="dropdown-box">
                            <ul class="menu vertical-menu category-menu">  
                                <?php $__currentLoopData = $cats->slice(0, 8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>                               
                                <li><a href="<?php echo e(url('cat-'.$c->id)); ?>"><img style="width:25px;padding-right: 8px" src="<?php echo e(URL::to($c->icon)); ?>"> <?php echo e($c->cat_name); ?></a></li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                                     
                        </div>
                    </div>
                    <nav class="main-nav">
                        <ul class="menu active-underline">
                            <?php if(Session::get('page')=="home"): ?> <?php $active = "active"; ?> <?php else: ?> <?php $active = ""; ?> <?php endif; ?> 
                            <li class="<?php echo e($active); ?>"><a href="<?php echo e(url('/')); ?>">Home</a></li>     
                            <?php if(Session::get('page')=="about"): ?> <?php $active = "active"; ?> <?php else: ?> <?php $active = ""; ?> <?php endif; ?>                       
                            <li class="<?php echo e($active); ?>"><a href="<?php echo e(url('about')); ?>">About Us</a></li>
                            <?php if(Session::get('page')=="gallery"): ?> <?php $active = "active"; ?> <?php else: ?> <?php $active = ""; ?> <?php endif; ?>
                            <li class="<?php echo e($active); ?>"><a href="<?php echo e(url('gallery')); ?>">Gallery</a></li>
                            <?php if(Session::get('page')=="news"): ?> <?php $active = "active"; ?> <?php else: ?> <?php $active = ""; ?> <?php endif; ?>
                            <li class="<?php echo e($active); ?>"><a href="<?php echo e(url('news')); ?>">News</a></li>
                            <?php if(Session::get('page')=="contact"): ?> <?php $active = "active"; ?> <?php else: ?> <?php $active = ""; ?> <?php endif; ?>
                            <li class="<?php echo e($active); ?>"><a href="<?php echo e(url('contact')); ?>">Contact Us</a></li> 
                            <?php if(Session::get('page')=="faqs"): ?> <?php $active = "active"; ?> <?php else: ?> <?php $active = ""; ?> <?php endif; ?>                   
                            <li class="<?php echo e($active); ?>"><a href="<?php echo e(url('faqs')); ?>">FAQs</a></li>
                        </ul>
                    </nav>
                </div>
                <!-- <div class="header-right">
                    <a href="#" class="d-xl-show"><i class="w-icon-map-marker mr-1"></i>D-Shop</a>
                    <a href="#"><i class="w-icon-sale"></i>Daily Deals</a>
                </div> -->
            </div>
        </div>
    </div>
</header><?php /**PATH /home/ebs/public_html/resources/views/web/layout/header.blade.php ENDPATH**/ ?>