@php $pages = $partsocial->pages; $nb_page_partsocial = $partsocial->nb_page; $total_debit = 0; $total_credit = 0; $total_droit = 0; $i = 0; $p = 0; @endphp @foreach ($pages as $operations) {{-- @include('guichet.pdf.entete-journal') --}}
PART SOCIAL
@php $st_debit = 0; $st_credit = 0; $st_droit = 0; $p++; @endphp @foreach ($operations as $operation) @php $i++ ; $solde_after = $operation->solde_avant + $operation->debit - $operation->credit; $st_debit += $operation->debit; $st_credit += $operation->credit; $st_droit += $operation->droit; $total_debit = $st_debit; $total_credit = $st_credit; $total_droit = $st_droit; @endphp @endforeach @if($nb_page_partsocial > 1) @endif @if($nb_page_partsocial == $p) @endif
FOLIO NOM ET PRENOM N° PIECE Démission Adhésion Droit
{{ $i }} {{ $operation->id_tiers }} {{ substr($operation->nom_tiers.' '.$operation->prenom_tiers, 0,30) }} {{ $operation->num_piece }} {{ number_format($operation->debit, 2, ',',' ') }} {{ number_format($operation->credit, 2, ',',' ') }} {{ number_format($operation->droit, 2, ',',' ') }}
SOUS-TOTAL {{ App\Lib\Format::number($st_credit, 2, ',',' ') }} {{ App\Lib\Format::number($st_debit, 2, ',',' ') }} {{ App\Lib\Format::number($st_droit, 2, ',',' ') }}
TOTAL {{ App\Lib\Format::number($total_credit, 2, ',',' ') }} {{ App\Lib\Format::number($total_debit, 2, ',',' ') }} {{ App\Lib\Format::number($total_droit, 2, ',',' ') }}
{{-- @include('guichet.pdf.footer')
{{$p + $page_decompte + $page_epargne + $page_credit}} / {{$nb_page_total}}
@if($nb_page_trans > $p)
@endif --}} @endforeach