@if ($featured_product->new_price > 0)
@if (((1 - ($featured_product['new_price']/$featured_product['price'])) * 100) > 0)
{{ (int) ((1 - ($featured_product['new_price']/$featured_product['price'])) * 100) + 1 }}%
@else
0%
@endif
@else
0%
@endif
@if ($featured_product->new_price > 0)
{{ $featured_product['new_price'] }} ر س
{{ $featured_product['price'] }} ر س
@else
{{ $featured_product['price'] }} ر س
@endif
{{ $featured_product['name'] }}