@extends('admin.layout.pdf') @section('content')

Evolution Mensuelle des Dépenses

@if ($date_validation != null && $date_validation < $dateFin) Provisoire @endif

VITALIS

Rapport Analytique — Vue Annuelle

Période d'Analyse : du {{ \Carbon\Carbon::parse($dateDebut)->format('d/m/Y') }} au {{ \Carbon\Carbon::parse($dateFin)->format('d/m/Y') }}

@php $headerItems = []; if (!empty($infos) && count($infos) > 0) { $info = $infos[0]; if (!empty($info->garant)) $headerItems[] = ['label' => 'Garant', 'value' => $info->garant]; if (!empty($info->libellePolice)) $headerItems[] = ['label' => 'Police', 'value' => $info->libellePolice]; if (!empty($info->souscripteur)) $headerItems[] = ['label' => 'Souscripteur', 'value' => $info->souscripteur]; if (!empty($info->courtier)) $headerItems[] = ['label' => 'Intermédiaire / Courtier', 'value' => $info->courtier]; if (!empty($info->libelleCollege)) $headerItems[] = ['label' => 'Collège', 'value' => $info->libelleCollege]; } else { if (isset($Entetegarant) && $Entetegarant) $headerItems[] = ['label' => 'Garant', 'value' => $Entetegarant->libelle]; if (isset($Entetepolice) && $Entetepolice) $headerItems[] = ['label' => 'Police', 'value' => $Entetepolice->libellePolice]; if (isset($Entetesouscripteur) && $Entetesouscripteur) $headerItems[] = ['label' => 'Souscripteur', 'value' => $Entetesouscripteur->nom.' '.$Entetesouscripteur->prenoms]; if (isset($Entetecourtier) && $Entetecourtier) $headerItems[] = ['label' => 'Intermédiaire / Courtier', 'value' => $Entetecourtier->libelle]; elseif (isset($EnteteApportteur) && $EnteteApportteur) $headerItems[] = ['label' => 'Intermédiaire / Courtier', 'value' => $EnteteApportteur->libelle]; if (isset($Entetecollege) && $Entetecollege) $headerItems[] = ['label' => 'Collège', 'value' => $Entetecollege->libelleCollege]; } // Always show Seuil if defined if (isset($idDepense)) $headerItems[] = ['label' => 'Seuil de Filtrage', 'value' => number_format($idDepense, 0, '', ' ').' FCFA']; @endphp @foreach (array_chunk($headerItems, 2) as $chunk) @foreach ($chunk as $item) @endforeach @if (count($chunk) == 1) @endif @endforeach
{{ $item['label'] }} {{ $item['value'] }}
@php $total_JANVIER = 0; $total_FEVRIER = 0; $total_MARS = 0; $total_AVRIL = 0; $total_MAI = 0; $total_JUIN = 0; $total_JUILLET = 0; $total_AOUT = 0; $total_SEPTEMBRE = 0; $total_OCTOBRE = 0; $total_NOVEMBRE = 0; $total_DECEMBRE = 0; $total_TOTAUX = 0; $rowCount = 0; $rowsPerPage = 45; @endphp @foreach ($p_factures as $facture) @php $total_JANVIER += (float)$facture->JANVIER; $total_FEVRIER += (float)$facture->FEVRIER; $total_MARS += (float)$facture->MARS; $total_AVRIL += (float)$facture->AVRIL; $total_MAI += (float)$facture->MAI; $total_JUIN += (float)$facture->JUIN; $total_JUILLET += (float)$facture->JUILLET; $total_AOUT += (float)$facture->AOUT; $total_SEPTEMBRE += (float)$facture->SEPTEMBRE; $total_OCTOBRE += (float)$facture->OCTOBRE; $total_NOVEMBRE += (float)$facture->NOVEMBRE; $total_DECEMBRE += (float)$facture->DECEMBRE; $total_TOTAUX += (float)$facture->TOTAUX; $rowCount++; @endphp @if ($rowCount % $rowsPerPage == 0 && $rowCount > 0 && $rowCount < count($p_factures))
Matricule Nom et Prénom(s) Jan. Fév. Mar. Avr. Mai Juin Juil. Août Sept. Oct. Nov. Déc. TOTAL
@endif @endforeach
Matricule Nom et Prénom(s) Jan.Fév.Mar.Avr.MaiJuin Juil.AoûtSept.Oct.Nov.Déc. TOTAL
{{ $facture->numeroAdherent }} {{ $facture->adherent }} {{ number_format($facture->JANVIER, 0, '', ' ') }} {{ number_format($facture->FEVRIER, 0, '', ' ') }} {{ number_format($facture->MARS, 0, '', ' ') }} {{ number_format($facture->AVRIL, 0, '', ' ') }} {{ number_format($facture->MAI, 0, '', ' ') }} {{ number_format($facture->JUIN, 0, '', ' ') }} {{ number_format($facture->JUILLET, 0, '', ' ') }} {{ number_format($facture->AOUT, 0, '', ' ') }} {{ number_format($facture->SEPTEMBRE, 0, '', ' ') }} {{ number_format($facture->OCTOBRE, 0, '', ' ') }} {{ number_format($facture->NOVEMBRE, 0, '', ' ') }} {{ number_format($facture->DECEMBRE, 0, '', ' ') }} {{ number_format($facture->TOTAUX, 0, '', ' ') }}
TOTAL GÉNÉRAL CONSOLIDÉ {{ number_format($total_JANVIER, 0, '', ' ') }} {{ number_format($total_FEVRIER, 0, '', ' ') }} {{ number_format($total_MARS, 0, '', ' ') }} {{ number_format($total_AVRIL, 0, '', ' ') }} {{ number_format($total_MAI, 0, '', ' ') }} {{ number_format($total_JUIN, 0, '', ' ') }} {{ number_format($total_JUILLET, 0, '', ' ') }} {{ number_format($total_AOUT, 0, '', ' ') }} {{ number_format($total_SEPTEMBRE, 0, '', ' ') }} {{ number_format($total_OCTOBRE, 0, '', ' ') }} {{ number_format($total_NOVEMBRE, 0, '', ' ') }} {{ number_format($total_DECEMBRE, 0, '', ' ') }} {{ number_format($total_TOTAUX, 0, '', ' ') }}
@endsection