@php $tva_amount = round(($operation->invoiceDetails->where('tva', true)->sum('total_price') * $operation->tva_rate) / 100, 2); $tva = number_format($tva_amount, 2, '.', ' '); @endphp @foreach($operation->invoiceDetails as $value) @php $borderBottom = $loop->last ? '1px solid #000000' : '1px solid #cdd0d4'; @endphp @endforeach
Référence Description Code T.V.A P.U Quantité Montant
Prestation de services
{{ $value->reference }} {!! nl2br(e($value->description)) !!} {{ $value->tva ? 'OUI' : 'NON' }} {{ $value->unit_price }} € {{ $value->quantity }} {{ $value->total_price }} €
Total HT {{ number_format($operation->invoiceDetails->sum('total_price'), 2, '.', ' ') }} €
TVA ({{ $operation->tva_rate }}%) {{ $tva }} €
Total TTC {{ number_format($operation->invoiceDetails->sum('total_price') + $tva_amount, 2, '.', ' ') }} €
{{ $operation->discount_info }} - {{ number_format($operation->discount_amount, 2, '.', ' ') }} €
Montant à régler : @if($operation->discount_amount) {{ number_format($operation->invoiceDetails->sum('total_price') + $tva_amount - $operation->discount_amount, 2, '.', ' ') }} € TTC @else {{ number_format($operation->invoiceDetails->sum('total_price') + $tva_amount, 2, '.', ' ') }} € TTC @endif
Date de règlement : {{ $operation->payment_date }}
@if($operation->tva)
Option pour le paiement de la taxe d'après les débits
@endif