<?php $__env->startPush('meta'); ?>
<meta name='description' content="Category Products"/>
<meta name='keywords' content="<?php $__currentLoopData = \App\Models\Tag::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php echo e($tag->name.', '); ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>" />
<?php $__env->stopPush(); ?>

<?php $__env->startSection('title', 'Category Products'); ?>

<?php $__env->startPush('css'); ?>
    
    
    <style>
        @import  url('https://fonts.googleapis.com/css2?family=Manrope:wght@200&display=swap');
    
        .rating {
            display: inline-flex;
            margin-top: -10px;
            flex-direction: row-reverse
        }
    
        .rating>input {
            display: none
        }
    
        .rating>label {
            position: relative;
            width: 28px;
            font-size: 35px;
            color: #ff0000;
            cursor: pointer
        }
    
        .rating>label::before {
            content: "\2605";
            position: absolute;
            opacity: 0
        }
    
        .rating>label:hover:before,
        .rating>label:hover~label:before {
            opacity: 1 !important
        }
    
        .rating>input:checked~label:before {
            opacity: 1
        }
    
        .rating:hover>input:checked~label:before {
            opacity: 0.4
        }
         .product-page .products .product{
            margin: 0 !important;
            box-shadow: none;
            border: none;
            margin-bottom: 10px !important
        }
    </style>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
<!--================product  Area start=================-->
<div class="container product-page">
    <h3 class="title" style="text-align: center;padding: 30px 0px;">Customer Favorites</h3>
    <div class="row">
         <!-- tittle heading -->
        <div class="menu-overly2"></div>
        <div class="side-bar col-md-3">
            
            <?php if (isset($component)) { $__componentOriginal7f75c5c61748a32dedc73a87fd82ef31c2c26406 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FilterSearchComponent::class, ['name' => 'category','value' => $slug]); ?>
<?php $component->withName('filter-search-component'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7f75c5c61748a32dedc73a87fd82ef31c2c26406)): ?>
<?php $component = $__componentOriginal7f75c5c61748a32dedc73a87fd82ef31c2c26406; ?>
<?php unset($__componentOriginal7f75c5c61748a32dedc73a87fd82ef31c2c26406); ?>
<?php endif; ?>
            
        </div>
        
        <div class="products col-md-9">

            <div class="container">
                <div class="row" style="margin-bottom: 10px;">
                    <?php if (isset($component)) { $__componentOriginal0c581b22ca71a99d90d3624e049c5914ec5b4c48 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FilterComponent::class, []); ?>
<?php $component->withName('filter-component'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0c581b22ca71a99d90d3624e049c5914ec5b4c48)): ?>
<?php $component = $__componentOriginal0c581b22ca71a99d90d3624e049c5914ec5b4c48; ?>
<?php unset($__componentOriginal0c581b22ca71a99d90d3624e049c5914ec5b4c48); ?>
<?php endif; ?>
                </div>
                <div class="row " id="grid-view">
                    <?php $__empty_1 = true; $__currentLoopData = $category->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <?php if (isset($component)) { $__componentOriginal2600b4b3da888da4fa9609a70ffd4f2ec18b499b = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ProductGridView::class, ['product' => $product]); ?>
<?php $component->withName('product-grid-view'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal2600b4b3da888da4fa9609a70ffd4f2ec18b499b)): ?>
<?php $component = $__componentOriginal2600b4b3da888da4fa9609a70ffd4f2ec18b499b; ?>
<?php unset($__componentOriginal2600b4b3da888da4fa9609a70ffd4f2ec18b499b); ?>
<?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <?php if (isset($component)) { $__componentOriginal7520860efb4886e334a00902c6bda6b494607c44 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ProductEmptyComponent::class, []); ?>
<?php $component->withName('product-empty-component'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7520860efb4886e334a00902c6bda6b494607c44)): ?>
<?php $component = $__componentOriginal7520860efb4886e334a00902c6bda6b494607c44; ?>
<?php unset($__componentOriginal7520860efb4886e334a00902c6bda6b494607c44); ?>
<?php endif; ?>
                    <?php endif; ?>
                    
                </div>
                  <div class="row " id="list-view" style="display: none;">
                    <?php $__empty_1 = true; $__currentLoopData = $category->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <?php if (isset($component)) { $__componentOriginala8eb8594bfe987fc157c1776e374753cef5bf4e0 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ProductListView::class, ['product' => $product]); ?>
<?php $component->withName('product-list-view'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8eb8594bfe987fc157c1776e374753cef5bf4e0)): ?>
<?php $component = $__componentOriginala8eb8594bfe987fc157c1776e374753cef5bf4e0; ?>
<?php unset($__componentOriginala8eb8594bfe987fc157c1776e374753cef5bf4e0); ?>
<?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <?php if (isset($component)) { $__componentOriginal7520860efb4886e334a00902c6bda6b494607c44 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ProductEmptyComponent::class, []); ?>
<?php $component->withName('product-empty-component'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7520860efb4886e334a00902c6bda6b494607c44)): ?>
<?php $component = $__componentOriginal7520860efb4886e334a00902c6bda6b494607c44; ?>
<?php unset($__componentOriginal7520860efb4886e334a00902c6bda6b494607c44); ?>
<?php endif; ?>
                    <?php endif; ?>
                </div>
            </div>
        </div>
        <!--================product  Area End=================-->

        <!-- //product right -->
    </div>
</div>
  <!-- //top products -->

<?php if (isset($component)) { $__componentOriginal0f6ef30710a4e9bc9139b6c403bbf4236c195cab = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\AddCartModal::class, []); ?>
<?php $component->withName('add-cart-modal'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0f6ef30710a4e9bc9139b6c403bbf4236c195cab)): ?>
<?php $component = $__componentOriginal0f6ef30710a4e9bc9139b6c403bbf4236c195cab; ?>
<?php unset($__componentOriginal0f6ef30710a4e9bc9139b6c403bbf4236c195cab); ?>
<?php endif; ?>
<?php echo $__env->make('components.cart-modal-attri', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('js'); ?>
    
    
    
    <script>
        var site_url = "<?php echo e(url('/')); ?>";   
        var page = 1;
        load_more(page);
        function load_more(page){
            var slug = '<?php echo $slug; ?>';
            var _totalCurrentResult=$(".product").length;
            $.ajax({
                url: site_url + "/category/"+slug+"?page=" + page,
                type: "get",
                datatype: "html",
                data:{
                            skip:_totalCurrentResult
                    },
                beforeSend: function()
                {
                    $('.ajax-loading').show();
                },
                success: function(response) {
                    var result = $.parseJSON(response);
                    $('.ajax-loading').hide();
                    $("#grid-view").append(result[0]);
                    $("#list-view").append(result[1]);
                    if(result[0].length==0){
                    }else{
                    
                        setTimeout(function() {
                            page++;
                            load_more(page);
                        }, 3000);
                    }
                },
                
            })
            
        
        }
    </script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.frontend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/apleefix/shopping.apleefix.com/resources/views/frontend/category-product.blade.php ENDPATH**/ ?>