@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('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(!is_null($category->meta) && $category->meta->no_index) @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.default.layouts.partials.announcement-template', ['position'=>\App\Constants\AnnouncementPositionTypeConstants::CATEGORY_HEADER,'relationId' => $category->category_id])
@if($category->category_image_show)
@if(!is_null($category->categoryName->category_short_desc)) {{ $category->categoryName->category_short_desc }} @endif {{ $category->categoryName->category_name }}
@if(!is_null($category->image))
{{ $category->image->alt_and_title }} @endif
@endif

{{ $category->categoryName->category_name }}

@if($category->product_count_show) {{ __('frontend/category.total_product_count',['totalProductCount' => $products->total()]) }} @endif
@include('frontend.themes.default.templates.categories.partials.featured-products')
@include('frontend.themes.default.templates.categories.partials.filter-sidebar')
@include('frontend.themes.default.templates.categories.partials.desktop-used-filter')
@if(request()->has('filters')) @endif
@if(count($products) > 0)
@foreach($products as $product) @if(isset($infinity) && $infinity) @include('frontend.themes.default.component.product-card',['product' => $product,'ajax' => true,'vueKey' =>'category']) @else @include('frontend.themes.default.component.product-card',['product' => $product,'priorityHigh' => $loop->iteration === 1]) @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
@if($products->currentPage() == 1) @if(!empty($category->categoryName->category_description))
{{ $category->categoryName->category_name }}
{!! $category->categoryName->category_description !!}
@endif @endif
@include('frontend.themes.default.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.default.integrations.google.ads.product-lists',['products' => $products,'type' => 'Category','pageName' => $category->categoryName->category_name]) @include('frontend.themes.default.integrations.facebook.categories',['products' => $products,'category' => $category,'categoryTree' => $categoryTree ]) @include('frontend.themes.default.integrations.schema.category-schema',['products' => $products,'category' => $category,'categoryTree' => $categoryTree ]) @endsection @include('frontend.themes.default.layouts.partials.static-code') @section('top-bar-notification') @include('frontend.themes.default.layouts.partials.top-bar-notification',[ 'positions' =>[\App\Constants\AnnouncementPositionTypeConstants::CATEGORY_PAGE_TOP],'relationId' => $category->category_id]) @endsection