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


    <section class="page-section bg-dark text-white">
        <div class="container-fluid">
            <?php
                $counter = 5;
                $rowcounter = 1;
            ?>
            <?php $__currentLoopData = array_chunk($products, 6); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$items): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="rowfcosuable p-4" id="row-<?php echo e($rowcounter+$key); ?>">
                    <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <div class="col-lg-2 moviecol">
                            <a href="/product?id=<?php echo e($product['id']); ?>" class="item movie fcosuable"
                               id="<?php echo e($counter); ?>">
                                <div class="verticalImage">
                                    <div class="loader hideloading"></div>
                                    <img src="<?php echo e($product['thumb']); ?>"
                                         alt=""></div>
                                <div class="movie-title">
                                    <div class="titletext"><?php echo e($product['name']); ?></div>
                                </div>
                            </a>
                        </div>
                        <?php $counter++; ?>

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

                </div>
                <?php $lastRowID = $rowcounter+$key+1 ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


            <nav aria-label="Page navigation" class="rowfcosuable" id="row-<?php echo e($lastRowID); ?>">
                <ul class="pagination">
                    <?php if($page != 1): ?>
                    <li class="page-item pl-1">
                        <a id="<?php echo e($counter); ?>" class="page-link page-linkcustom fcosuable"
                           href="/products/?<?php echo e($prevpage); ?>" tabindex="-1">صفحه
                            قبل</a>
                    </li>
                    <?php $counter++; ?>
                    <?php endif; ?>
                        <?php if(($page * 24) < $listCount): ?>
                        <li class="page-item pr-1">
                            <a id="<?php echo e($counter); ?>" href="/products/?<?php echo e($nextpage); ?>"
                               class="page-link page-linkcustom fcosuable">صفحه بعد</a>
                        </li>
                    <?php endif; ?>
                </ul>
            </nav>
        </div>

    </section>


<?php $__env->stopSection(); ?>
<?php $__env->startSection('style'); ?>
    <style>
        .titletext {
            font-size: 15px !important;
        }
    </style>
    

<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script src="/dist/js/app.js"></script>

    <script>
        $(".fcosuable").first().addClass('activeFocus').focus();

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

<?php echo $__env->make('frontend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\filmaa.ir\resources\views/frontend/products.blade.php ENDPATH**/ ?>