<?php echo $__env->make('layouts.head', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<body>
   <?php echo $__env->make('layouts.topbar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>


    <!-- Navbar Start -->
    <?php echo $__env->make('layouts.navbar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <!-- Navbar End -->


    <!-- Page Header Start -->
    <div class="container-fluid page-header py-5 wow fadeIn" data-wow-delay="0.1s">
        <div class="container text-center py-4">
            <h1 class="display-3 animated slideInDown">Products</h1>
            <nav aria-label="breadcrumb animated slideInDown">
                <ol class="breadcrumb justify-content-center mb-0">
                    <li class="breadcrumb-item"><a href="#!">Home</a></li>
                    <li class="breadcrumb-item"><a href="#!">Pages</a></li>
                    <li class="breadcrumb-item active" aria-current="page">Products</li>
                </ol>
            </nav>
        </div>
    </div>
    <!-- Page Header End -->







<!-- Search Bar Start -->
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-lg-6 col-md-8">
            <form action="#" method="GET" class="d-flex">
                <input type="text" name="query" class="form-control me-2" placeholder="Search products..." value="<?php echo e(request('query')); ?>">
                <button type="submit" class="btn btn-primary px-4">Search</button>
            </form>
        </div>
    </div>
</div>
<!-- Search Bar End -->

    <!-- Service Start -->
   <div class="row g-4">
    <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

            <div class="col-md-5 col-lg-3 wow fadeIn" data-wow-delay="0.1s">
                <div class="team-item d-flex h-100 p-4">
                    <div class="team-detail pe-4">
                        <img class="img-fluid mb-4" src="<?php echo e(asset('storage/'.$product->image)); ?>" alt="">
                        <h3><?php echo e($product->name); ?></h3>
                        <p>Tsh <?php echo e(number_format($product->price,2)); ?> <span class="text-danger"><?php echo e($product->unit); ?></span></p>
                        <a class="btn btn-square btn-primary my-2" href="<?php echo e(route('add.to.cart', $product->id)); ?>"><i class="bi bi-cart-plus text-white fs-3"></i></a>
                    </div>

                </div>
            </div>
               
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 
        <a/div>
    <!-- Service End -->



    <!-- Testimonial Start -->
    

    <!-- Newsletter Start -->
    <div class="container-fluid bg-primary py-5 mt-5 wow fadeIn" data-wow-delay="0.1s">

</div>
    <!-- Newsletter End -->


    <!-- Footer Start -->
   <?php echo $__env->make('layouts.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
 <!-- Footer End -->


    <!-- Back to Top -->
    <a href="#!" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a>

<?php echo $__env->make('layouts.links', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
</body>

</html><?php /**PATH /Users/dope/Documents/kaukaPortal/kaukamedics/resources/views/products.blade.php ENDPATH**/ ?>