Hello,
{{ $body }}
@if (!empty($items))
@php
$showPrice = $docType !== 'pricerequest';
$totalHT = 0;
$totalTax = 0;
@endphp
@endif {{-- ✅ هادي اللي كانت ناقصة --}}
| Référence | Nom | Quantité | @if ($showPrice)Prix Unitaire | Total HT | Taxe | Total TTC | @endif
|---|---|---|---|---|---|---|
| {{ $item['ref'] }} | {{ $item['name'] }} | {{ $item['qty'] }} | @if ($showPrice){{ number_format($item['price'], 2) }} | {{ number_format($itemTotalHT, 2) }} | {{ number_format($itemTax, 2) }} | {{ number_format($itemTotalTTC, 2) }} | @endif
| 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.