<?php
$setting = DB::table('settings')->first();
?>


<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title><?php echo e($setting->title); ?></title>
    <link rel="shortcut icon" href="<?php echo e(asset('/public/siteImage')); ?>/<?php echo e($setting->favicon); ?>" class="img-fluid">
    <link href="https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@500&display=swap" rel="stylesheet">
    <link href="https://fonts.maateen.me/solaiman-lipi/font.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Titillium+Web:wght@200;300;400;600&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('public/fontdev/')); ?>/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.6.0/font/bootstrap-icons.css">

    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('public/fontdev/')); ?>/css/uikit.min.css">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('public/assets/css/slick.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('public/assets/css/slick-theme.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('public/fontdev/')); ?>/style.css">

    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('public/fontdev')); ?>/css/toast.css">

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>

<body onload="myfunctions();" id="body">
    <div id="load"></div>

    <div uk-sticky>
        <div class="col-md-12 topbar pt-2 pb-2 d-none d-lg-block">
            <div class="container clearfix">
                <div class="float-end">
                    <li class="border-end pe-4"><a href="<?php echo e(url('user-login')); ?>" title="Login">Login</a></li>
                    <li class=""><a href="<?php echo e(url('user-Register')); ?>" title="Register">Register</a></li>
                </div>
            </div>
        </div>
        <!---------End Topbar------->
        <div class="col-md-12 topbar pt-2 pb-2 d-lg-none">
            <div class="container clearfix">
                <div class="text-center">
                    Hotline: <a href="tel:0170000000" class="text-dark">0170000000</a>
                </div>
            </div>
        </div>
        <!---------End Topbar------->





        <div class="col-md-12 menubarsection pb-2">
            <div class="container">
                <div class="row align-items-center">

                    <div class="col-lg-1 col-md-2 col-4 order-1">
                        <!-- <?php echo e(asset('/public/siteImage')); ?>/<?php echo e($setting->logo); ?> -->
                        <a href="<?php echo e(url('/')); ?>"><img src="<?php echo e(asset('/public/siteImage')); ?>/<?php echo e($setting->logo); ?>" class="img-fluid"></a>
                        <!-- <span class="text-light" data-bs-toggle="modal" data-bs-target="#exampleModal">&nbsp;&nbsp;<i class="bi bi-geo-alt-fill"></i>&nbsp;&nbsp;<?php if(isset($getlocation)): ?><?php echo e($getlocation); ?><?php else: ?> Chattogram <?php endif; ?></span> -->
                    </div>

                    <div class="col-xl-2 col-lg-2 d-none d-lg-block order-2 ">
                        <div class="row">
                            <div class="col-auto d-flex" style="color: #575757;">
                                <i class="bi bi-headphones fs-2"></i>
                                <div class="ps-2" style="font-size: 14px;">
                                    <span>Hotline: <?php echo e($setting->opening_time ?? ''); ?></span>
                                    <br>
                                    <span><?php echo e($setting->hotline ?? ''); ?></span>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xl-5 col-lg-5 col-md-5 col-12 order-3 flex-grow-1">
                        <form method="get" action="<?php echo e(url('/searchproducts')); ?>">
                            <?php echo csrf_field(); ?>
                            <div class="input-group">
                                <input type="text" class="form-control" id="searchbox" placeholder="What are you looking for?" name="search" autocomplete="off" required="" onkeyup="Searchproduct();">
                                <div class="input-group-append">
                                    <button class="btn" type="submit"><i class="bi bi-search"></i></button>
                                </div>
                            </div>
                        </form>
                        <div id="searchdata"></div>
                    </div>

                    <div class="col-md-4 col-8 order-2 order-md-3">
                        <div class="float-end text-dark">
                            <?php if(Auth('guest')->user()): ?>
                            <a href="<?php echo e(url('userdashboard')); ?>" class="text-dark">
                                <i class="bi bi-person-circle text-dark"></i>
                                &nbsp;&nbsp;
                                <span class="text"><b>Dashboard</b></span>
                            </a>
                            <?php else: ?>
                            <a href="<?php echo e(url('user-login')); ?>" class="text-dark">
                                <i class="bi bi-person-circle text-dark"></i>
                                &nbsp;&nbsp;
                                <span class="text"><b>Dashboard</b></span>
                            </a>
                            <?php endif; ?>

                            <span class="border-end mx-3"></span>

                            <a href="#" type="button" class="text-dark" uk-toggle="target: #offcanvas-none">
                                <div class="cart-wrapper">
                                    <div class="me-3">
                                        <i class="bi bi-cart3 cart__icon text-dark"></i>
                                        <span class="cart__quantity cartqunt">0</span>
                                    </div>
                                    <div>
                                        <div class="cart__text">My Cart</div>
                                        <div class="cart__price">BDT <span class="cartamount"></span></div>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="header-bottom d-md-block d-none">
            <div class="container">
                <div class="nav-bar">
                    <div class="nav-bar--left">
                        <div class="nav-bar__item">
                            <!-- start::dropdown -->
                            <div class="dropdown">
                                <div class="dropdown__toggler">
                                    <a href="#" class="all-category-button">
                                        <i class="bi bi-list"></i>
                                    </a>
                                </div>

                                <div class="dropdown__content" tabindex="0">
                                    <ul class="dropdown__list">


                                        <?php
                                        $item = DB::table('product_item')->orderBy('sl','ASC')->get();
                                        $category = DB::table('product_category')->get();
                                        ?>


                                        <?php if(isset($item)): ?>
                                        <?php $__currentLoopData = $item; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php
                                        $item_name=str_replace(" ","-",$i->item_name)
                                        ?>

                                        <li class="dropdown__item sidemenu">
                                            <a href="<?php echo e(url('item')); ?>/<?php echo e($item_name); ?>/<?php echo e($i->id); ?>" class="dropdown__link"><img src="<?php echo e(asset('public/itemImage')); ?>/<?php echo e($i->image); ?>" class="img-fluid">&nbsp;&nbsp;
                                                <?php echo e($i->item_name); ?>

                                                <i class="bi bi-chevron-right dropdown__link--arrow"></i>
                                            </a>

                                            <ul>
                                                <?php if(isset($category)): ?>
                                                <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php if($cat->item_id == $i->id): ?>
                                                <?php
                                                $category_name=str_replace(" ","-",$cat->category_name)
                                                ?>

                                                <li class="dropdown__item">
                                                    <a href="<?php echo e(url('category')); ?>/<?php echo e($category_name); ?>/<?php echo e($cat->id); ?>" class="dropdown__link">
                                                        <?php echo e($cat->category_name); ?>

                                                    </a>
                                                </li>
                                                <?php endif; ?>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                <?php endif; ?>
                                            </ul>
                                        </li>

                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>

                                    </ul>
                                </div>
                            </div>
                            <!-- end::dropdown -->
                        </div>

                        <div class="nav-bar__item">
                            <a href="<?php echo e(URL::to('/')); ?>" class="nav-bar__link">Home</a>
                        </div>
                        <div class="nav-bar__item">
                            <a href="<?php echo e(url('Contact_us')); ?>" class="nav-bar__link">Contact</a>
                        </div>
                        <div class="nav-bar__item">
                            <a href="<?php echo e(url('howtobuys')); ?>" class="nav-bar__link">How to buy</a>
                        </div>
                        <div class="nav-bar__item">
                            <a href="<?php echo e(url('privacy_policys')); ?>" class="nav-bar__link">Privacy & Policy</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!-- Modal -->
    <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">

                <div class="modal-body">
                    <center>
                        <strong>
                            <h1><i class="bi bi-compass"></i></h1>
                            SELECT YOUR DELIVERY LOCATION
                        </strong>

                        <form class="mt-4 formback p-3" method="get" action="<?php echo e(url('/Location')); ?>">
                            <?php echo csrf_field(); ?>
                            <div class="row align-items-center">
                                <div class="form-group col-md-4">
                                    <select class="form-control textfill">
                                        <option>Select City</option>
                                        <option value="Chattogram">Chattogram</option>
                                    </select>
                                </div>
                                <div class="form-group col-md-4">
                                    <select class="form-control textfill" name="area">
                                        <option>Select Area</option>
                                        <option value="Sea Beach">Sea Beach</option>
                                        <option value="Chorpara">Chorpara</option>
                                        <option value="Jele Para">Jele Para</option>
                                        <option value="Alpha">Alpha</option>
                                        <option value="C-Anchorage">C-Anchorage</option>
                                        <option value="B-Anchorage">B-Anchorage</option>
                                        <option value="karnaphuli">karnaphuli</option>
                                    </select>
                                </div>
                                <div class="form-group col-md-4">
                                    <input type="submit" name="" class="btn btn-success btn-sm w-100 rounded">
                                </div>
                            </div>
                        </form>
                    </center>

                </div>

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










    <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel">
        <div class="offcanvas-header">
            <span>Categories</span>
            <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
        </div>
        <div class="offcanvas-body sidemenu p-0">
            <ul class="uk-nav-parent-icon" uk-nav duration='800'>



                <?php
                $item = DB::table('product_item')->orderBy('sl','ASC')->get();
                $category = DB::table('product_category')->get();
                ?>


                <?php if(isset($item)): ?>
                <?php $__currentLoopData = $item; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                $item_name=str_replace(" ","-",$i->item_name)
                ?>

                <li class="uk-parent">
                    <a href="<?php echo e(url('item')); ?>/<?php echo e($item_name); ?>/<?php echo e($i->id); ?>"><img src="<?php echo e(asset('public/itemImage')); ?>/<?php echo e($i->image); ?>" class="img-fluid">&nbsp;&nbsp;<?php echo e($i->item_name); ?></a>
                    <ul class="uk-nav-sub">
                        <?php if(isset($category)): ?>
                        <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($cat->item_id == $i->id): ?>
                        <?php
                        $category_name=str_replace(" ","-",$cat->category_name)
                        ?>
                        <li><a href="<?php echo e(url('category')); ?>/<?php echo e($category_name); ?>/<?php echo e($cat->id); ?>"><?php echo e($cat->category_name); ?></a></li>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </ul>
                </li>

                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>


                <!--                 <li><a href="<?php echo e(url('hugesaving')); ?>"><img src="<?php echo e(asset('public/fontdev/')); ?>/img/i1.webp" class="img-fluid">&nbsp;&nbsp;Huge Saving</a></li>
                <li><a href="<?php echo e(url('ordersavemore')); ?>"><img src="<?php echo e(asset('public/fontdev/')); ?>/img/i2.webp" class="img-fluid">&nbsp;&nbsp;Order more save more</a></li>
                <li><a href="<?php echo e(url('dicountoffer')); ?>"><img src="<?php echo e(asset('public/fontdev/')); ?>/img/i3.webp" class="img-fluid">&nbsp;&nbsp;Special Discount </a></li>
                <li><a href="<?php echo e(url('buyget')); ?>"><img src="<?php echo e(asset('public/fontdev/')); ?>/img/i4.webp" class="img-fluid">&nbsp;&nbsp;Buy 1 get 1 offers</a></li>
                <li><a href="<?php echo e(url('specialservices')); ?>"><img src="<?php echo e(asset('public/fontdev/')); ?>/img/i10.webp" class="img-fluid">&nbsp;&nbsp;Our special discount offers</a></li> -->


                <div style="height: 150px;"></div>



            </ul>

        </div>
    </div>










    <script type="text/javascript">
        function Searchproduct()

        {

            var search = $("#searchbox").val();

            if (search != '')

            {

                $.ajax({
                    headers: {
                        'X-CSRF-TOKEN': "<?php echo e(csrf_token()); ?>"
                    },
                    url: '<?php echo e(url("Searchproduct")); ?>',
                    type: 'POST',
                    data: {
                        search: search
                    },
                    success: function(data) {
                        $('#searchdata').html(data);

                    }

                })
            } else

            {
                $('#searchdata').html('');

            }

        }
    </script><?php /**PATH D:\wamp64\www\standardBD\resources\views/User/layouts/header.blade.php ENDPATH**/ ?>