@extends('frontend.layouts.app') @if(isset($subsubcategory_id)) @php $meta_title = \App\SubSubCategory::find($subsubcategory_id)->meta_title; $meta_description = \App\SubSubCategory::find($subsubcategory_id)->meta_description; @endphp @elseif (isset($subcategory_id)) @php $meta_title = \App\SubCategory::find($subcategory_id)->meta_title; $meta_description = \App\SubCategory::find($subcategory_id)->meta_description; @endphp @elseif (isset($category_id)) @php $meta_title = \App\Category::find($category_id)->meta_title; $meta_description = \App\Category::find($category_id)->meta_description; @endphp @elseif (isset($brand_id)) @php $meta_title = \App\Brand::find($brand_id)->meta_title; $meta_description = \App\Brand::find($brand_id)->meta_description; @endphp @else @php $meta_title = env('APP_NAME'); $meta_description = \App\SeoSetting::first()->description; @endphp @endif @section('meta_title'){{ $meta_title }}@stop @section('meta_description'){{ $meta_description }}@stop @section('meta') @endsection @section('content')

Filters

@foreach ($attributes as $key1 => $attribute) @if (\App\Attribute::find($attribute['id']) != null) @endif @endforeach {{-- --}}
@isset($category_id) @endisset @isset($subcategory_id) @endisset @isset($subsubcategory_id) @endisset
@if(!empty($category_id)) @php $productCount =\App\Product::query()->where('category_id', $category_id)->distinct('seller_id')->pluck('seller_id')->all(); @endphp @elseif(empty($subcategory_id)) @php $productCount = \App\Product::query()->where('subcategory_id', $subcategory_id)->distinct('seller_id')->pluck('seller_id')->all(); @endphp @else @php $productCount = \App\Product::query()->distinct('seller_id')->pluck('seller_id')->all(); @endphp @endif
@foreach ($products as $key => $product)
@if(home_base_price($product->id) != home_discounted_base_price($product->id)) {{ home_base_price($product->id) }} @endif {{ home_discounted_base_price($product->id) }}
{{ renderStarRating($product->rating) }}

{{ __($product->name) }}

@if (\App\Addon::where('unique_identifier', 'club_point')->first() != null && \App\Addon::where('unique_identifier', 'club_point')->first()->activated)
{{ translate('Club Point') }}: {{ $product->earn_point }}
@endif
@endforeach
@endsection @section('script') @endsection