@extends('adtTheme::layouts.master') @section('title',!is_null($category->meta) && !is_null($category->meta->meta_title) ? $category->meta->meta_title : __('frontend/category.category_page_title',['categoryName' => $category->categoryName->category_name ])) @section('meta_description',!is_null($category->meta) ? $category->meta->meta_description : '') @section('meta_keywords',!is_null($category->meta) ? $category->meta->meta_keywords : '') @section('body-class','current-page-default-category') @section('meta') @if($products->previousPageUrl() != '') @endif @if($products->nextPageUrl() !='') @endif @if(!is_null($category->image)) @elseif(count($products) > 0 && !is_null($products->first()->featuredImage)) @endif @if($category->category_image_show && !is_null($category->image)) @else @if(count($products) > 0) @foreach($products->take(2) as $product) @foreach($product->images->take(1) as $featuredImage) @if(config('generalSettings.webp_status',0)) @else @endif @endforeach @endforeach @endif @endif @endsection @section('content') @include('frontend.themes.theme2.layouts.partials.announcement-template', ['position'=>\App\Constants\AnnouncementPositionTypeConstants::CATEGORY_HEADER,'relationId' => $category->category_id])
@if($category->category_image_show)
@if(!is_null($category->image)) {{ $category->image->alt_and_title }} @endif
@endif
@if($category->product_count_show)
{{ $category->categoryName->category_name }}({{ __('frontend/category.total_product_count',['totalProductCount' => $products->total()]) }})
@else
{{ $category->categoryName->category_name }}
@endif
@include('frontend.themes.theme2.templates.categories.partials.filter-sidebar')
@include('frontend.themes.theme2.templates.categories.partials.desktop-used-filter')
@if(count($products) > 0)
@foreach($products as $product) @if(isset($infinity) && $infinity) @include('frontend.themes.theme2.component.product-card',['product' => $product,'ajax' => true,'vueKey' =>'category']) @else @include('frontend.themes.theme2.component.product-card',['product' => $product,'priorityHigh' => in_array($loop->iteration,[1,2,3])]) @endif @endforeach
@else
{{ __('frontend/category.product_not_found') }}
@endif
@if(Config::get('generalSettings.category_page_product_list_type', 'paginate') === 'infinity') @if($products->onLastPage() === false)
@endif @else {!! $products->links('adtTheme::layouts.partials.pagination-template') !!} @endif
@include('frontend.themes.theme2.layouts.partials.announcement-template', ['position'=>\App\Constants\AnnouncementPositionTypeConstants::CATEGORY_FOOTER,'relationId' => $category->category_id])
@endsection @section('style') @endsection @section('js-middle') @if(Config::get('generalSettings.category_page_product_list_type', 'paginate') === 'infinity') @endif @endsection @section('js-end') @include('frontend.themes.theme2.integrations.google.ads.product-lists',['products' => $products,'type' => 'Category','pageName' => $category->categoryName->category_name]) @include('frontend.themes.theme2.integrations.facebook.categories',['products' => $products,'category' => $category,'categoryTree' => $categoryTree ]) @include('frontend.themes.theme2.integrations.schema.category-schema',['products' => $products,'category' => $category,'categoryTree' => $categoryTree ]) @endsection @include('frontend.themes.theme2.layouts.partials.static-code') @section('top-bar-notification') @include('frontend.themes.theme2.layouts.partials.top-bar-notification',[ 'positions' =>[\App\Constants\AnnouncementPositionTypeConstants::CATEGORY_PAGE_TOP],'relationId' => $category->category_id]) @endsection