@php $tva_amount = round(($operation->invoiceDetails->where('tva', true)->sum('total_price') * $operation->tva_rate) / 100, 2); $tva = number_format($tva_amount, 2, '.', ' '); @endphp
| 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, '.', ' ') }} € | ||||