@php $i = 0; $cumul_debit=0; $cumul_credit=0; $stotal_debit=0; $stotal_credit=0; $solde = 0; @endphp @foreach ($pages as $k=>$operations)
UNION DES OTIV TOAMASINA
ZONE "LITTORAL"
Villa Sandry 25, Rue de Libération
BP : 519 TOAMASINA
Tél. Fax : +261 20 53 323 05 / E-mail : contact@otivzl.mg / Site web : otivzl.mg
  • Agence: {{ $agence->nom_agence}}
  • Localité: {{ $agence->localite}}
RELEVE FDL DU {{ (new DateTime($dateDebut))->format(config('myahs.date_format')) }} AU {{ (new DateTime($dateFin))->format(config('myahs.date_format')) }}
@foreach ($operations as $operation) @php $i++; $stotal_debit +=$operation->debit; $stotal_credit +=$operation->credit; $cumul_debit +=$operation->debit; $cumul_credit +=$operation->credit; $solde = $report + $cumul_credit - $cumul_debit; @endphp @endforeach @if($nb_page == ($k+1)) @endif @php $stotal_debit = 0; $stotal_credit = 0; @endphp
Date Réf. note Libellé Débit Crédit Solde
REPORT DE SOLDE @if($k==0) {{number_format(($report),2,',',' ')}} @else {{number_format(($solde),2,',',' ')}} @endif
{{ (new DateTime($operation->date_oper))->format('d/m/Y')}} {{ $operation->ref_oper }} {{ substr($operation->libelle,0,40) }} {{ number_format($operation->debit,2,',',' ') }} {{ number_format($operation->credit,2,',',' ') }} {{ number_format($solde,2,',',' ') }}
SOUS TOTAL {{number_format($stotal_debit,2,',',' ')}} {{number_format($stotal_credit,2,',',' ')}} {{number_format($solde,2,',',' ')}}
TOTAL {{number_format($cumul_debit,2,',',' ')}} {{number_format($cumul_credit,2,',',' ')}} {{number_format($solde,2,',',' ')}}
@if($k < ($nb_page-1))
@endif @endforeach