@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($GP247TemplatePath.'.layout')
{{-- block_main_content_center --}}
@section('block_main_content_center')
{{-- sub category --}}
@isset ($subCategory)
@if($subCategory->count())
{{ gp247_language_render('front.sub_categories') }}
@foreach ($subCategory as $key => $item)
@endforeach
{{-- Render pagination --}}
@include($GP247TemplatePath.'.common.pagination', ['items' => $subCategory])
{{--// Render pagination --}}
@endif
@endisset
{{-- //sub category --}}
@if (count($products))
@include($GP247TemplatePath.'.common.pagination_result', ['items' => $products])
@php
$view = gp247_shop_process_view($GP247TemplatePath, 'common.shop_product_filter_sort');
@endphp
@include($view, ['filterSort' => $filter_sort])
@foreach ($products as $key => $product)
@php
$view = gp247_shop_process_view($GP247TemplatePath, 'common.shop_product_single');
@endphp
@include($view, ['product' => $product])
@endforeach
@include($GP247TemplatePath.'.common.pagination', ['items' => $products])
@else
{!! gp247_language_render('front.no_item') !!}
@endif
@endsection
{{-- //block_main_content_center --}}
@push('styles')
@php
$view = gp247_shop_process_view($GP247TemplatePath, 'common.shop_css');
@endphp
@include($view)
@endpush
@push('scripts')
@endpush