@php
$total_popActive = 0;
$total_popTraite = 0;
$total_montantReclame = 0;
$total_montantNonRembourse = 0;
$total_montantRembourse = 0;
$total_coutMoyen = 0;
@endphp
@if(isset($depenses) && count($depenses) > 0)
@foreach ($depenses as $dep)
@php
$total_popActive += (int)$dep->popActive;
$total_popTraite += (int)$dep->popTraite;
$total_montantReclame += (float)$dep->montantReclame;
$total_montantNonRembourse += (float)$dep->NonRembourse;
$total_montantRembourse += (float)$dep->montantRembourse;
$total_coutMoyen += (float)$dep->Coutmoyen;
@endphp
| {{ $dep->numeroAdherent }} |
{{ $dep->adherent }} |
{{ $dep->popActive }} |
{{ $dep->popTraite }} |
{{ number_format($dep->montantReclame, 0, '', ' ') }} XOF |
{{ number_format($dep->montantRembourse, 0, '', ' ') }} XOF |
{{ number_format($dep->NonRembourse, 0, '', ' ') }} XOF |
{{ number_format($dep->Coutmoyen, 0, '', ' ') }} XOF |
@endforeach
| Totaux Consolidés |
{{ $total_popActive }} |
{{ $total_popTraite }} |
{{ number_format($total_montantReclame, 0, '', ' ') }} XOF |
{{ number_format($total_montantRembourse, 0, '', ' ') }} XOF |
{{ number_format($total_montantNonRembourse, 0, '', ' ') }} XOF |
{{ number_format($total_montantRembourse / max(1, $total_popTraite), 0, '', ' ') }} XOF |
@else
| Aucune donnée de consommation familiale trouvée... |
@endif