{{ __("Désignation") }} {{ __("Unité") }} {{ __("Quantité") }} {{ __("Montant HT") }} {{ __("Total") }} @php $total_ht = 0; $total_category = 0; @endphp @foreach($articles as $index => $item) @if ($item['cusQuoDet_title']==1) {{-- Gestion du titre --}} @php $total_category = 0; @endphp {!! $item['cusQuoDet_name'] !!} @else @php $total_line = $item['cusQuoDet_amountHT']*$item['cusQuoDet_qty']; $total_category += $total_line; $total_ht += $total_line @endphp {{$item['cusQuoDet_order']}} {!! $item['cusQuoDet_name'] !!} {!! $item['cusQuoDet_unit'] !!} {!! $item['cusQuoDet_qty'] !!} {!! $item['cusQuoDet_amountHT'] !!} € {{ number_format((float)$total_line, 2, '.', '') }} € @if(empty($articles[$index+ 1]) || ( isset($articles[$index+ 1]) && ($articles[$index+ 1]['cusQuoDet_title']==1))) {{-- --}} {{ __("Sous-total") }} {{ number_format((float)$total_category, 2, '.', '') }} € @endif @endif @endforeach @php $total_tva = $total_ht*$customer_quote->cusQuo_tva/100; @endphp {{ __("Montant total HT") }} {{ number_format((float)$total_ht, 2, '.', '') }} € {{ __("TVA") }} {!! $customer_quote->cusQuo_tva !!}% {{ number_format((float)$total_tva, 2, '.', '') }} € {{ __("Montant total TTC") }} {{ number_format((float)$total_ht+$total_tva, 2, '.', '') }} €