@if ($product->new_price > 0)
@if (((1 - ($product['new_price']/$product['price'])) * 100) > 0)
{{ (int) ((1 - ($product['new_price']/$product['price'])) * 100) + 1 }}%
@else
@endif
@else
@endif
{{ $product['name'] }}
{{ $product->company['name'] }}
@if ($product->new_price > 0)
{{ $product['new_price'] }} ر س
{{ $product['price'] }} ر س
@else
{{ $product['price'] }} ر س
@endif
@auth
@if (!Auth::guard('web')->user()->user_carts()->wherePivot('product_id', $product->id)->count())
@else
@endif
@else
@endauth