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

Dépenses par Famille d'Actes & Prestataires

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

VITALIS

Analyse Croisée — Performance du Réseau

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_CONSULTATION = 0; $total_IMAGERIE = 0; $total_BIOLOGIE = 0; $total_DENTISTERIE = 0; $total_OPTIQUE = 0; $total_HOSPITALISATION = 0; $total_PHARMACIE = 0; $total_MATERNITE = 0; $total_AUTRES_EXAMENS = 0; $total_AUXILIAIRES_MEDICAUX = 0; $total_ASSISTANCE = 0; $total_TRANSPORT_MEDICALISE = 0; $total_BILAN_DE_SANTE = 0; $total_TOTAUX = 0; $rowCount = 0; $rowsPerPage = 45; @endphp @foreach ($p_factures as $p_facture) @php $total_CONSULTATION += (float)$p_facture->CONSULTATION; $total_IMAGERIE += (float)$p_facture->IMAGERIE; $total_BIOLOGIE += (float)$p_facture->BIOLOGIE; $total_DENTISTERIE += (float)$p_facture->DENTISTERIE; $total_OPTIQUE += (float)$p_facture->OPTIQUE; $total_HOSPITALISATION += (float)$p_facture->HOSPITALISATION; $total_PHARMACIE += (float)$p_facture->PHARMACIE; $total_MATERNITE += (float)$p_facture->MATERNITE; $total_AUTRES_EXAMENS += (float)$p_facture->AUTRES_EXAMENS; $total_AUXILIAIRES_MEDICAUX += (float)$p_facture->AUXILIAIRES_MEDICAUX; $total_ASSISTANCE += (float)$p_facture->ASSISTANCE; $total_TRANSPORT_MEDICALISE += (float)$p_facture->TRANSPORT_MEDICALISE; $total_BILAN_DE_SANTE += (float)$p_facture->BILAN_DE_SANTE; $total_TOTAUX += (float)$p_facture->TOTAUX; $rowCount++; @endphp @if ($rowCount % $rowsPerPage == 0 && $rowCount > 0 && $rowCount < count($p_factures))
Prestataire Consul. Imag. Biol. Dent. Opt. Hospit. Pharm. Matern. Autres Auxil. Assist. Transp. Bilan TOTAL
@endif @endforeach
Prestataire Consul.Imag.Biol.Dent.Opt. Hospit.Pharm.Matern.AutresAuxil. Assist.Transp.Bilan TOTAL
{{ $p_facture->Prestataire }} {{ number_format($p_facture->CONSULTATION, 0, '', ' ') }} {{ number_format($p_facture->IMAGERIE, 0, '', ' ') }} {{ number_format($p_facture->BIOLOGIE, 0, '', ' ') }} {{ number_format($p_facture->DENTISTERIE, 0, '', ' ') }} {{ number_format($p_facture->OPTIQUE, 0, '', ' ') }} {{ number_format($p_facture->HOSPITALISATION, 0, '', ' ') }} {{ number_format($p_facture->PHARMACIE, 0, '', ' ') }} {{ number_format($p_facture->MATERNITE, 0, '', ' ') }} {{ number_format($p_facture->AUTRES_EXAMENS, 0, '', ' ') }} {{ number_format($p_facture->AUXILIAIRES_MEDICAUX, 0, '', ' ') }} {{ number_format($p_facture->ASSISTANCE, 0, '', ' ') }} {{ number_format($p_facture->TRANSPORT_MEDICALISE, 0, '', ' ') }} {{ number_format($p_facture->BILAN_DE_SANTE, 0, '', ' ') }} {{ number_format($p_facture->TOTAUX, 0, '', ' ') }}
GÉNÉRAL CONSOLIDÉ {{ number_format($total_CONSULTATION, 0, '', ' ') }} {{ number_format($total_IMAGERIE, 0, '', ' ') }} {{ number_format($total_BIOLOGIE, 0, '', ' ') }} {{ number_format($total_DENTISTERIE, 0, '', ' ') }} {{ number_format($total_OPTIQUE, 0, '', ' ') }} {{ number_format($total_HOSPITALISATION, 0, '', ' ') }} {{ number_format($total_PHARMACIE, 0, '', ' ') }} {{ number_format($total_MATERNITE, 0, '', ' ') }} {{ number_format($total_AUTRES_EXAMENS, 0, '', ' ') }} {{ number_format($total_AUXILIAIRES_MEDICAUX, 0, '', ' ') }} {{ number_format($total_ASSISTANCE, 0, '', ' ') }} {{ number_format($total_TRANSPORT_MEDICALISE, 0, '', ' ') }} {{ number_format($total_BILAN_DE_SANTE, 0, '', ' ') }} {{ number_format($total_TOTAUX, 0, '', ' ') }}
@endsection