<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
<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>
@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>