From eb321833141f4c1346a86361464dcd0a6230cb54 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 5 Sep 2023 14:55:26 +0200 Subject: [PATCH] wait #6240 @0:10 --- .../views/components/item-cart.blade.php | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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 -- 2.39.5