@php $pages = $credit->pages; $nb_page_credit = $credit->nb_page; $total_before = 0; $total_after = 0; $total_debit = 0; $total_credit = 0; $total_interet = 0; $total_penalite = 0; $i = 0; $p = 0; @endphp @foreach ($pages as $operations) @include('guichet.pdf.entete-journal')
N° | REF PRET | NOM ET PRENOM | REF OPERATION | SOLDE AV | OCTROI | REMBOURSEMENT | INTERET | PENALITE | SOLDE AP |
---|---|---|---|---|---|---|---|---|---|
{{ $i }} | {{ $operation->ref_pret }} | {{ substr($operation->nom_tiers.' '.$operation->prenom_tiers, 0,30) }} | {{ $operation->num_piece }} | {{App\Lib\Format::number($operation->solde_avant)}} | {{App\Lib\Format::number($operation->debit)}} | {{App\Lib\Format::number($operation->credit)}} | {{App\Lib\Format::number($operation->interet)}} | {{App\Lib\Format::number($operation->panalite)}} | {{App\Lib\Format::number($solde_after)}} |
SOUS-TOTAL | {{ App\Lib\Format::number($st_before, 2, ',',' ') }} | {{ App\Lib\Format::number($st_debit, 2, ',',' ') }} | {{ App\Lib\Format::number($st_credit, 2, ',',' ') }} | {{ App\Lib\Format::number($st_interet, 2, ',',' ') }} | {{ App\Lib\Format::number($st_penalite, 2, ',',' ') }} | {{ App\Lib\Format::number($st_after, 2, ',',' ') }} | |||
TOTAL | {{ App\Lib\Format::number($total_before, 2, ',',' ') }} | {{ App\Lib\Format::number($total_debit, 2, ',',' ') }} | {{ App\Lib\Format::number($total_credit, 2, ',',' ') }} | {{ App\Lib\Format::number($total_interet, 2, ',',' ') }} | {{ App\Lib\Format::number($total_penalite, 2, ',',' ') }} | {{ App\Lib\Format::number($total_after, 2, ',',' ') }} |