From: soufiane Date: Tue, 5 Sep 2023 12:55:26 +0000 (+0200) Subject: wait #6240 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=eb321833141f4c1346a86361464dcd0a6230cb54;p=pmi.git wait #6240 @0:10 --- diff --git a/resources/views/components/item-cart.blade.php b/resources/views/components/item-cart.blade.php index 4628a48..752c731 100644 --- a/resources/views/components/item-cart.blade.php +++ b/resources/views/components/item-cart.blade.php @@ -20,11 +20,23 @@

{{ $product['name'] }}

@if(isset($product['discount']) && $product['discount'] !== 0) @if(floatval($product['basic_selling_price'])) -

{{ __('Prix catalogue') }} : {{ - $product['basic_selling_price'] }} € HT +

{{ __('Prix catalogue') }} : + + @if(floatval($product['price'])) + {{ $product['price'] }} + @else + {{ $product['basic_selling_price'] }} + @endif € HT +

-

{{ __('Votre prix') }} : {{ - number_format($product['basic_selling_price'] - (($product['basic_selling_price'] * $product['discount']) / 100), 2) }} € HT +

{{ __('Votre prix') }} : + + @if(floatval($product['price'])) + {{ $product['price'] - (($product['price'] * $product['discount']) / 100) }} + @else + {{ number_format($product['basic_selling_price'] - (($product['basic_selling_price'] * $product['discount']) / 100), 2) }} + @endif € HT +

@endif @else