@php $pages = $transaction->pages; $nb_page_trans = $transaction->nb_page; $total_debit = 0; $total_credit = 0; $i = 0; $p = 0; @endphp @foreach ($pages as $operations) @include('guichet.pdf.entete-journal')
N° | N° COMPTE | LIBELLE | N° PIECE | ENCAISSEMENT | DECAISSEMENT |
---|---|---|---|---|---|
{{ $i }} | {{ $operation->compte_id }} | {{ $operation->libelle }} | {{ $operation->num_piece }} | {{App\Lib\Format::number($operation->credit)}} | {{App\Lib\Format::number($operation->debit)}} |
SOUS-TOTAL | {{ App\Lib\Format::number($st_credit, 2, ',',' ') }} | {{ App\Lib\Format::number($st_debit, 2, ',',' ') }} | |||
TOTAL | {{ App\Lib\Format::number($total_credit, 2, ',',' ') }} | {{ App\Lib\Format::number($total_debit, 2, ',',' ') }} |