<?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_pg products_sec section">
            <div class="container">
                <div class="">
                    <?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-3">
                                        <?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)): ?>
                                <nav aria-label="Page navigation">
                                    <ul class="pagination justify-content-center">
                                        <?php if(!$products->onFirstPage()): ?>
                                            <li class="page-item">
                                                <a href="<?php echo e($products->previousPageUrl().'&'.$params); ?>" class="page-link"><?php echo e(__('web.previous')); ?></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 if($products->currentPage() == $page): ?> active <?php endif; ?>" 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); ?>" href="javascript:void(0);"><?php echo e(__('web.next')); ?></a>
                                            </li>
                                        <?php endif; ?>
                                    </ul>
                                </nav>
                            <?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>

            </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 /home/omaralyomhost/public_html/electric/resources/views/web/pages/products/search.blade.php ENDPATH**/ ?>