LIVRE DE CAISSE DU {{(new DateTime($sumLivre->date_oper))->format(config('myahs.date_format'))}} : @if($typeCoffre == 'C') CAISSETTE @else RESERVE @endif |
N° |
Désignation |
Entrées |
Sorties |
Solde |
@if(!empty($report->solde))
REPORT DU {{(new DateTime($report->date_report))->format(config('myahs.date_format'))}} |
{{App\Lib\Format::number($report->solde)}} |
@endif
@foreach ($livres as $livre)
@php
$i++;
$stotal_debit +=$livre->debit;
$stotal_credit +=$livre->credit;
$cumul_debit +=$livre->debit;
$cumul_credit +=$livre->credit;
$solde = $report->solde + $cumul_debit - $cumul_credit;
@endphp
{{$i}} |
{{substr($livre->designation,0,40)}} |
{{App\Lib\Format::number($livre->debit)}} |
{{App\Lib\Format::number($livre->credit)}} |
{{App\Lib\Format::number($solde)}} |
@endforeach
SOUS TOTAL |
{{App\Lib\Format::number($stotal_debit)}} |
{{App\Lib\Format::number($stotal_credit)}} |
{{App\Lib\Format::number($solde)}} |
@if($nb_page == ($k+1))
TOTAL |
{{App\Lib\Format::number($cumul_debit)}} |
{{App\Lib\Format::number($cumul_credit)}} |
{{App\Lib\Format::number($solde)}} |
@endif
@php
$stotal_debit = 0;
$stotal_credit = 0;
@endphp
@if($k < ($nb_page-1))