Frais payés par un moyen de paiement {{ $persopro }}

@foreach($typeFrais as $type) @php($totalHT = 0) @php($totalTTC = 0) @php($totalKM = 0) @foreach($lignes[$type->id] as $ligne) @php($totalHT += $ligne->ht) @php($totalTTC += $ligne->ttc) @if($ligne->distance > 0) @php($totalKM += $ligne->distance) @endif @endforeach @if($persopro == "professionnel") @else @endif @if($totalHT > 0) @else @endif @foreach($lignes[$type->id] as $ligne) @if($persopro == "professionnel") @else @endif @if($ligne->ht > 0) @else @endif @endforeach @if($totalKM > 0) @php($totalKMs = "(" . $totalKM . " km)") @else @php($totalKMs = "") @endif @if($totalHT > 0) @else @endif

{{ $type->label }}

Date RésuméMoyen HT TTC MontantActions
{{ $ligne->ladate }} {!! wordwrap($ligne->getResume(),90,"
") !!}
{!! wordwrap($ligne->moyenPaiement()->first()->label,90,"
") !!}
{{ nbFR($ligne->ht) }}{{ {{ $currency }} {{ nbFR($ligne->ttc) }}{{ $currency }} @if($status == 1) Éditer | Supprimer @else - @endif
Total {{ $totalKMs }}{{ nbFR($totalHT) }}{{ $currency }} {{ nbFR($totalTTC) }}{{ $currency }}

@endforeach @php($grandTotal = 0) @foreach($typeFrais as $type) @php($total = 0) @foreach($lignes[$type->id] as $ligne) @php($total += $ligne->ttc) @endforeach @php($grandTotal += $total) @endforeach

Récapitulatif {{ $recap }}

Total {{ $type->label }} {{ nbFR($total) }}{{ $currency }}
Total global ({{ $persopro }}) {{ nbFR($grandTotal) }}{{ $currency }}