@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 ($Entetecourtier != null) COURTIER : {{ $Entetecourtier->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 @if (count($depenses) != 0) @foreach ($depenses as $dep) @php $total_popActive += (int)$dep->popActive; $total_popTraite += (int)$dep->popTraite; $total_montantReclame += (int)$dep->montantReclame; $total_montantNonRembourse += (int)$dep->NonRembourse; $total_montantRembourse += (int)$dep->montantRembourse; /* $total_taux += (int)$dep->Taux; */ $total_coutMoyen += (int)$dep->Coutmoyen; @endphp {{-- --}} @endforeach {{-- --}} @else @endif
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->NonRembourse, 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 }}
Aucune consommation pour cette police...

@endsection