@if($product->tag != NULL)
@endif
@if($product->stock_qty == 0)
@endif
@if($product->images && count($product->images) > 0)
@else
@endif
@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) }})