@php echo show_ratings($product->review->avg('rating')) @endphp
@php
$price = (@$product->stock->first()?->price ?? $product->price);
@endphp
@if(($product->discount_percentage) > 0)
@php
$discountPrice = cal_discount($product->discount_percentage,$price);
@endphp
{{short_amount($discountPrice)}}
{{short_amount($price)}}
@else
{{short_amount($price)}}
@endif