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

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


        <section class="products_sec section">
            <div class="container">
                <div class="row">
                    <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-lg-3 col-md-4 col-6">
                            <?php echo $__env->make('web.pages.components.product.product',['product'=>$row], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                </div>
            </div>
        </section>


    <!-- Start section -->
        <?php echo $__env->make('web.layouts.newsletter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </main>
<?php $__env->startSection('inject_js'); ?>
    <script>
        let url_fetch_subAttr = "<?php echo e(route('fetch.attributeSub')); ?>"
        function showSubAttribute()
        {
            let data = $('#filter').serialize();
            $.ajax
            ({
                url : url_fetch_subAttr,
                type: 'GET',
                data: data,
                success:function(data)
                {
                    $('.sub_attributes').html('');
                    $.each( data.data, function( key, value ) {
                        $('#sub_attribute_'+key).html(value);
                    });
                }
            })
        }
    </script>
<?php $__env->stopSection(); ?>
<?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/city/resources/views/web/pages/products/products.blade.php ENDPATH**/ ?>
