Welcome

Hello,

{{ $body }}

@if (!empty($items))
@php $showPrice = $docType !== 'pricerequest'; $totalHT = 0; $totalTax = 0; @endphp @if ($showPrice) @endif @foreach ($items as $item) @php $itemTotalHT = $showPrice ? $item['qty'] * $item['price'] : 0; $itemTax = $showPrice ? $itemTotalHT * ($item['tax']['value'] / 100) : 0; $itemTotalTTC = $itemTotalHT + $itemTax; $totalHT += $itemTotalHT; $totalTax += $itemTax; @endphp @if ($showPrice) @endif @endforeach @if ($showPrice) @endif
Référence Nom QuantitéPrix Unitaire Total HT Taxe Total TTC
{{ $item['ref'] }} {{ $item['name'] }} {{ $item['qty'] }}{{ number_format($item['price'], 2) }} {{ number_format($itemTotalHT, 2) }} {{ number_format($itemTax, 2) }} {{ number_format($itemTotalTTC, 2) }}
Total HT: {{ number_format($totalHT, 2) }} Total Taxes: {{ number_format($totalTax, 2) }}
Total TTC: {{ number_format($totalHT + $totalTax, 2) }}

Ceci est un e-mail automatique, veuillez ne pas y répondre.

@endif {{-- ✅ هادي اللي كانت ناقصة --}}