@if(isset($newProducts) && $newProducts->count() > 0) @foreach($newProducts as $product)
{{ $product->title }}
@include('ecommerce::partials.product.wishlist-btn', ['product' => $product]) @auth @else @endauth
@for($i = 1; $i <= 5; $i++) @endfor
{{ \Illuminate\Support\Str::limit($product->title, 35) }}

{{ \Illuminate\Support\Str::limit($product->description ?? 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 80) }}

${{ number_format($product->default_price, 2) }}

@endforeach @elseif(isset($featuredProducts) && $featuredProducts->count() > 0) @foreach($featuredProducts as $product)
{{ $product->title }}
@include('ecommerce::partials.product.wishlist-btn', ['product' => $product]) @auth @else @endauth
@for($i = 1; $i <= 5; $i++) @endfor
{{ \Illuminate\Support\Str::limit($product->title, 35) }}

{{ \Illuminate\Support\Str::limit($product->description ?? 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 80) }}

${{ number_format($product->default_price, 2) }}

@endforeach @elseif(isset($bestSellers) && $bestSellers->count() > 0) @foreach($bestSellers as $product)
{{ $product->title }}
@include('ecommerce::partials.product.wishlist-btn', ['product' => $product]) @auth @else @endauth
@for($i = 1; $i <= 5; $i++) @endfor
{{ \Illuminate\Support\Str::limit($product->title, 35) }}

{{ \Illuminate\Support\Str::limit($product->description ?? 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 80) }}

${{ number_format($product->default_price, 2) }}

@endforeach @else

No products found.

@endif