<?php $__env->startSection('content'); ?>
    <section class="py-5">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <?php if(!empty($q_name)): ?>
                        <p>Hasil Pencarian Nama Produk <span style="color: #ebaa07">"<?php echo e($q_name); ?>"</span></p>
                    <?php endif; ?>
                    <?php if(!empty($q_category_id)): ?>
                        <p>Hasil Pencarian Berdasarkan Kategori <span
                                style="color: #ebaa07">"<?php echo e($category_name->name); ?>"</span></p>
                    <?php endif; ?>
                    <div class="bootstrap-tabs product-tabs">
                        <div class="tabs-header d-flex justify-content-between border-bottom my-5">
                            <h3>Produk</h3>
                        </div>
                        <div class="tab-content" id="nav-tabContent">
                            <div class="tab-pane fade show active" id="nav-all" role="tabpanel"
                                aria-labelledby="nav-all-tab">
                                <div
                                    class="product-grid row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5">

                                    <?php $__currentLoopData = $product; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                         <form action="<?php echo e(route('cart.insert')); ?>" method="POST">
                               <?php echo csrf_field(); ?> <?php echo method_field('POST'); ?>
                               <input type="hidden" name="product_id" value="<?php echo e($item->id); ?>" />
                               <div class="col">
                                   <div class="product-item">
                                       <figure>
                                           <a href="<?php echo e(route('product.detail', $item->id)); ?>" title="Product Title">
                                               <img src="<?php echo e(asset('img_assets/product/' . $item->image)); ?>"
                                                   alt="Product Thumbnail" class="tab-image">
                                           </a>
                                       </figure>
                                       <div class="d-flex flex-column text-center">
                                           <h3 class="fs-6 fw-normal"><?php echo e($item->name); ?></h3>
                                           <div class="">
                                               <?php if($item->is_discount): ?>
                                                   <del>Rp. <?php echo e(number_format($item->price)); ?></del>
                                                   <span class="text-dark fw-semibold">Rp.
                                                       <?php echo e(number_format($item->price * (1 - $item->discount_price / 100))); ?></span>
                                                   <span
                                                       class="badge border border-dark-subtle rounded-0 fw-normal px-1 fs-7 lh-1 text-body-tertiary">
                                                       <?php echo e($item->discount_price); ?>% Diskon</span>
                                               <?php else: ?>
                                                   <span class="text-dark fw-semibold">Rp.
                                                       <?php echo e(number_format($item->price * (1 - $item->discount_price / 100))); ?></span>
                                               <?php endif; ?>
                                           </div>
                                           <div class="button-area p-3 pt-0">
                                               <div class="row g-1 mt-2">
                                                   <div class="col-3"><input min="0" type="number"
                                                           name="amount"
                                                           class="form-control border-dark-subtle input-number quantity"
                                                           value="1"></div>
                                                   <div class="col-9">
                                                       <button type="submit"
                                                           class="btn btn-primary rounded-1 p-2 fs-7 btn-cart">
                                                           <svg width="18" height="18">
                                                               <use xlink:href="#cart"></use>
                                                           </svg> Masukkan Keranjang</button>
                                                   </div>
                                               </div>
                                           </div>
                                       </div>
                                   </div>
                               </div>
                           </form>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </div>
                                <!-- / product-grid -->

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.web', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp8\htdocs\pasar_nelayan_zaskia\resources\views/apps/web/product.blade.php ENDPATH**/ ?>