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