]> _ Git - pmi.git/commitdiff
wait #6245 @0:05
authorsoufiane <soufiane@cubedesigners.com>
Wed, 6 Sep 2023 08:15:03 +0000 (10:15 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 6 Sep 2023 08:15:03 +0000 (10:15 +0200)
resources/views/components/item-cart-order.blade.php

index f59ab0088d527132e50db0ccd5e724dc19d62f90..ca150d0500569371596823c34b1e36c5f6fc15a1 100644 (file)
                                     <p class="no-m">{{ __('Prix catalogue') }} :
                                         <span class="text-navy line-through">
                                             @if(floatval($product['price']))
-                                                {{ $product['price'] }}
+                                                {{ \App\Models\ECommerceCommon::formatPrice($product['price']) }}
                                             @else
-                                                {{ $product['basic_selling_price'] }}
+                                                {{ \App\Models\ECommerceCommon::formatPrice($product['basic_selling_price']) }}
                                             @endif € HT
                                         </span>
                                     </p>
                                     <p class="no-m">{{ __('Votre prix') }} : <span class="text-navy">{{
-                                        number_format(\App\Models\ECommerceCommon::priceWithDiscount($product['basic_selling_price'], $product['discount']), 2) }} € HT</span>
+                                        \App\Models\ECommerceCommon::formatPrice(\App\Models\ECommerceCommon::priceWithDiscount($product['basic_selling_price'], $product['discount']), 2) }} € HT</span>
                                     </p>
                                 @endif
                             @else
@@ -54,9 +54,9 @@
                                         <p class="no-m">{{ __('Prix unitaire') }} :
                                             <span class="text-navy">
                                                 @if(floatval($product['price']))
-                                                    {{ $product['price'] }}
+                                                    {{ \App\Models\ECommerceCommon::formatPrice($product['price']) }}
                                                 @else
-                                                    {{ $product['basic_selling_price'] }}
+                                                    {{ \App\Models\ECommerceCommon::formatPrice($product['basic_selling_price']) }}
                                                 @endif € HT
                                             </span>
                                         </p>
@@ -70,7 +70,7 @@
                             @if(floatval($product['price']))
                                 <p class="no-m">
                                     <span class="sm:inline hidden">{{ __('Total HT : ') }}</span>
-                                    {{ number_format(\App\Models\ECommerceCommon::priceWithDiscount($product['price'],$product['discount']) * $product['quantity'], 2) }}€ HT
+                                    {{ \App\Models\ECommerceCommon::formatPrice(\App\Models\ECommerceCommon::priceWithDiscount($product['price'],$product['discount']) * $product['quantity'], 2) }}€ HT
                                 </p>
                             @else
                                 <p class="text-navy">
                 </div>
                 @if($item['total'])
                     <div class="text-right pb-6">
-                        <p class="no-m">{{ __('Frais de port HT') }} : {{ $prices < 1000 ? 20 : 0 }}€</p>
-                        <p class="no-m">{{ __('Total HT') }} : {{ $prices += ($prices < 1000 ? 20 : 0) }}€</p>
-                        <p class="no-m">{{ __('Montant TVA') }} : {{ $prices * 0.2 }}€</p>
-                        <p class="no-m">{{ __('Total TTC') }} : {{ $item['total'] }}€</p>
+                        <p class="no-m">{{ __('Frais de port HT') }} : {{ \App\Models\ECommerceCommon::formatPrice($prices < 1000 ? 20 : 0) }}€</p>
+                        <p class="no-m">{{ __('Total HT') }} : {{ \App\Models\ECommerceCommon::formatPrice($prices += ($prices < 1000 ? 20 : 0)) }}€</p>
+                        <p class="no-m">{{ __('Montant TVA') }} : {{ \App\Models\ECommerceCommon::formatPrice($prices * 0.2) }}€</p>
+                        <p class="no-m">{{ __('Total TTC') }} : {{ \App\Models\ECommerceCommon::formatPrice($item['total']) }}€</p>
                     </div>
                 @endif
             </div>