@extends('admin.layout.pdf') @section('content')
RECAPITULATIF DES DEPENSES PAR TRANCHES D'AGES

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 @if ($EnteteApportteur != null) COURTIER             : {{ $EnteteApportteur->libelle}}

@endif

@endif {{-- {{ dd($tranchesfts)}} --}} @php $total_Nombre = 0; $total_Taux_Eff = 0; $total_Depense_Tranche = 0; $total_Taux_Depense = 0; $total_coutMoyenTrancheTraite = 0; @endphp @foreach ($tranchesfts as $tranchesft) @php (int)$total_Nombre = (int)$total_Nombre + (int)$tranchesft->Nombre; (int)$total_Taux_Eff = (int)$total_Taux_Eff + (int)$tranchesft->Taux_Eff; (int)$total_Depense_Tranche = (int)$total_Depense_Tranche + (int)$tranchesft->Depense_Tranche; (int)$total_Taux_Depense = (int)$total_Taux_Depense + (int)$tranchesft->Taux_Depense; (int)$total_coutMoyenTrancheTraite = (int)$total_coutMoyenTrancheTraite + (int)$tranchesft->CoutMoyen; @endphp @endforeach
Tranche d'âge Effectif sur la période Dépenses sur la période Côut moyen
Nombre Taux Montant Taux
{{ $tranchesft->libelleTrancheAge }} {{ $tranchesft->Nombre }} {{ $tranchesft->Taux_Eff }} {{ number_format($tranchesft->Depense_Tranche, 0, '', ' ') }} {{ number_format($tranchesft->Taux_Depense, 0, '', ' ') }} {{ number_format($tranchesft->CoutMoyen, 0, '', ' ') }}
Total {{ $total_Nombre }} {{ $total_Taux_Eff }} {{ number_format($total_Depense_Tranche, 0, '', ' ') }} {{ number_format($total_Taux_Depense, 0, '', ' ') }} {{ number_format($total_coutMoyenTrancheTraite, 0, '', ' ') }}

@endsection