@if(count($arrivalProducts) > 0)
@foreach($arrivalProducts as $product)
@if($product->tag != NULL) @endif @if($product->stock_qty == 0) @endif
@if($product->images && count($product->images) > 0) {{ $product->product_name }} @else Default Product Image @endif
@if (! $product->has_variants) @else {{-- Detail page button (when variants exist) --}} {{-- or any icon you prefer --}} @endif

{{ $product->product_name }}

@if($product->discount > 0) {{ discount($product) }} BDT {{ $product->product_price }} BDT @else {{ $product->product_price }} BDT @endif
@php $avgRating = round($product->reviews_avg_rating ?? 0, 1); $ratingCount = $product->reviews_count ?? 0; @endphp
{{ $avgRating }} / 5
({{ $ratingCount }} {{ Str::plural('review', $ratingCount) }})
@endforeach
@endif {{----}} {{----}}