@php
/*
$layout_page = shop_product_list
**Variables:**
- $subCategory: paginate
Use paginate: $subCategory->appends(request()->except(['page','_token']))->links()
- $products: paginate
Use paginate: $products->appends(request()->except(['page','_token']))->links()
*/
@endphp
@extends($sc_templatePath.'.layout')
{{-- block_main_content_center --}}
@section('block_main_content_center')
{{-- sub category --}}
@isset ($subCategory)
@if($subCategory->count())
{{ sc_language_render('front.sub_categories') }}
@foreach ($subCategory as $key => $item)
@endforeach
{{-- Render pagination --}}
@include($sc_templatePath.'.common.pagination', ['items' => $subCategory])
{{--// Render pagination --}}
@endif
@endisset
{{-- //sub category --}}
@if (count($products))
@include($sc_templatePath.'.common.pagination_result', ['items' => $products])
@include($sc_templatePath.'.common.product_filter_sort', ['filterSort' => $filter_sort])
@foreach ($products as $key => $product)
@include($sc_templatePath.'.common.product_single', ['product' => $product])
@endforeach
@include($sc_templatePath.'.common.pagination', ['items' => $products])
@else
{!! sc_language_render('front.no_item') !!}
@endif
@endsection
{{-- //block_main_content_center --}}
@push('styles')
{{-- Your css style --}}
@endpush
@push('scripts')
{{-- //script here --}}
@endpush