@foreach($finalArray as $line) @php $rowClass = ''; if ($line['quantity'] == $line['delivered']) { $rowClass = ''; } elseif ($line['delivered'] == 0) { $rowClass = 'text-danger'; } elseif ($line['quantity'] != $line['delivered']) { $rowClass = 'text-warning'; } @endphp {{-- --}} @endforeach
Réf. Désignation Qté Cdée Qté Livrée P.U HT Total H.T TVA
@if(!empty($line['product_code'])) {{ $line['product_code'] }} @else {{ $line['para_product_code'] }} @endif @if($line['product_designation'] != '') {{ $line['product_designation'] }} @else {{ $line['para_product_designation'] }} @endif {{ intval($line['quantity']) == '0'?'': intval($line['quantity']) }} {{ intval($line['delivered']) == '0'?'':intval($line['delivered'])}} {{ $line['price_ht'] == '0'? '': $line['price_ht'] }} {{ ($line['price_ht'] * $line['quantity']) == 0 ? '' : number_format((float)($line['price_ht'] * $line['quantity']), 3, ',', ' ') }} {{ $line['tva'] == 0.000 ? '' : number_format((float)$line['tva'], 3, ',', ' ') }} {{$line['tva'] == '0.000' ? '' : intval($line['tva'])}}


Montant Total HT {{ number_format($tot_ht, 3, ',', ' ') }} TND
TVA {{ $total_tva == 0.000 ? '0' : number_format($total_tva, 3, ',', ' ') }} TND
Montant Total TTC {{ number_format($tot_ttc, 3, ',', ' ') }} TND



{{----}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}}