@extends('admin.layout.pdf') @section('content')
ETAT DES DEPENSES PAR FAMILLE D'ASSURES

PERIODE COMPTABLE CONSIDEREE: {{ \Carbon\Carbon::parse($dateDebut)->format('d/m/Y') }} AU {{ \Carbon\Carbon::parse($dateFin)->format('d/m/Y') }}

@if (!empty($infos)) @foreach ($infos as $info )

GARANT                : {{ $info->garant }}

POLICE                  : {{ $info->libellePolice }}

SOUSCRIPTEUR   : {{ $info->souscripteur }}

COURTIER             : {{ $info->courtier }}

@endforeach @else

@if ($Entetegarant != null) GARANT                : {{ $Entetegarant->libelle}}

@endif @if ($Entetepolice != null) POLICE                  : {{ $Entetepolice->libellePolice}}

@endif @if ($Entetesouscripteur != null) SOUSCRIPTEUR   : {{ $Entetesouscripteur->nom,' ', $Entetesouscripteur->prenoms}}

@endif @if ($Entetepolice != null) COURTIER             : {{ $Entetepolice->libelle}}

@endif

@endif {{-- --}} @php $total_popActive = 0; $total_popTraite = 0; $total_montantReclame = 0; $total_montantNonRembourse = 0; $total_montantRembourse = 0; $total_coutMoyen = 0; $total_taux = 0; @endphp @foreach ($depenses as $dep) { @php (int)$total_popActive = (int)$total_popActive + ((int)$dep->popActive); (int)$total_popTraite = (int)$total_popTraite + (int)($dep->popTraite); (int)$total_montantReclame = (int)$total_montantReclame+ (int)$dep->montantReclame; (int)$total_montantNonRembourse = (int)$total_montantNonRembourse+ (int)$dep->montantNonRembourse; (int)$total_montantRembourse = (int)$total_montantRembourse+ (int)$dep->montantRembourse; /* (int)$total_taux = (int)$total_taux+ (int)$dep->Taux; */ (int)$total_coutMoyen = (int)$total_coutMoyen + (int)$dep->Coutmoyen; @endphp {{-- --}} @endforeach {{-- --}}
Matricule Famille Pop. active Pop traitée Montant Réclamé Montant Remboursé Montant Non Remb. Coût moyenTaux
{{ $dep->numeroAdherent }} {{ $dep->adherent }} {{ $dep->popActive }} {{ $dep->popTraite }} {{ number_format($dep->montantReclame, 0, '', ' ') }} {{ number_format($dep->montantRembourse, 0, '', ' ') }} {{ number_format($dep->montantNonRembourse, 0, '', ' ') }} {{ number_format($dep->Coutmoyen, 0, '', ' ') }}{{ $dep->Taux }}
TOTAL GENERAL : {{ $total_popActive }} {{ $total_popTraite }} {{ number_format($total_montantReclame, 0, '', ' ') }} {{ number_format($total_montantRembourse, 0, '', ' ') }} {{ number_format($total_montantNonRembourse, 0, '', ' ') }} {{ number_format($total_coutMoyen, 0, '', ' ') }} {{ $total_taux }}
@endsection