<?php $__env->startSection('content'); ?>


    <main>
        <!-- Start pg_header -->
    <?php echo $__env->make('web.pages.components.header.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


            <!-- Start section -->
        <section class="products_sec section">
            <div class="container">
                <?php if(count($products) > 0): ?>
                    <div class="row">
                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-lg-4">
                                <?php echo $__env->make('web.pages.components.products.card',['product'=>$row], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <div class="row">
                        <?php if(!($products->hasMorePages() == false && $products->currentPage() == 1)): ?>
                            <div class="pagination-wrapper mt-4">
                                <nav aria-label="Page navigation example">
                                    <ul class="pagination justify-content-center">
                                        <?php if(!$products->onFirstPage()): ?>
                                            <li class="page-item">
                                                <a class="page-link" href="<?php echo e($products->previousPageUrl().'&'.$params); ?>" aria-label="Previous">
                                                    <span aria-hidden="true">«</span>
                                                </a>
                                            </li>
                                        <?php endif; ?>
                                        <?php $__currentLoopData = $products->getUrlRange(1, $products->lastPage()); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li class="page-item"><a class="page-link <?php echo e($products->currentPage() == $page ? 'active' : ''); ?>" href="<?php echo e($url.'&'.$params); ?>"><?php echo e($page); ?></a></li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($products->hasMorePages()): ?>
                                            <li class="page-item">
                                                <a class="page-link" href="<?php echo e($products->nextPageUrl().'&'.$params); ?>" aria-label="Next">
                                                    <span aria-hidden="true">»</span>
                                                </a>
                                            </li>
                                        <?php endif; ?>
                                    </ul>
                                </nav>
                            </div>
                        <?php endif; ?>
                    </div>
                <?php else: ?>
                    <?php echo $__env->make('web.pages.components.not_found',['message'=>__('web.not_exist_products_search')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php endif; ?>

            </div>
        </section>

    </main>



<?php $__env->stopSection(); ?>

<?php echo $__env->make('web.layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/flower/resources/views/web/pages/products/search.blade.php ENDPATH**/ ?>