@foreach($data as $row) @endforeach
REF ARTICLE DESIGNATION QTÉ P.U.HT TOTAL H.T TVA
{{$row['ART']}} {{$row['DESIG']}} {{$row['QTS']}} {{$row['PRHT']}} {{$row['PRHT']*$row['QTS']}} {{$row['TAUXTVA']}}


@if($type == 2) @php $totTtcValue = (float) str_replace(',', '.', str_replace(' ', '', (string) $tot_ttc)); $retsValue = (float) str_replace(',', '.', str_replace(' ', '', (string) $rets)); $netAPayer = $totTtcValue - $retsValue; $displayRets = $retsValue > 0 ? $rets : ''; @endphp @if($retsValue > 0) @endif @endif @if($type == 2) @php $totTtcValue = (float) str_replace(',', '.', str_replace(' ', '', (string) $ttc)); $retsValue = (float) str_replace(',', '.', str_replace(' ', '', (string) $rets)); $netAPayer = $totTtcValue - $retsValue; @endphp @endif
Total BRUT {{$brut}}
Total REMISE {{$remise}}
Total HT {{$ht}}
Total TVA {{$tva}}
Timbre {{$timbre}}
Total TTC {{$ttc}}
RS {{$displayRets}}
Net à payer {{ number_format($netAPayer, 3, ',', ' ') }}
RS {{$rets}}
Net à payer {{ number_format($netAPayer, 3, ',', ' ') }}