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

Dépenses par Prestataires Médicaux

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

VITALIS

Rapport Analytique — Réseau de Soins

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]; } @endphp @foreach (array_chunk($headerItems, 2) as $chunk) @foreach ($chunk as $item) @endforeach @if (count($chunk) == 1) @endif @endforeach
{{ $item['label'] }} {{ $item['value'] }}
@php $TypeP_old = ""; $total_montantFacture = 0; $total_apresDecompte = 0; $total_Coutmoyen = 0; $total_Taux = 0; $rowCount = 0; $rowsPerPage = 45; @endphp @foreach ($p_factures as $p_facture) @php $total_montantFacture += (float)$p_facture->montantFacture; $total_apresDecompte += (float)$p_facture->apresDecompte; $total_Coutmoyen += (float)$p_facture->Coutmoyen; $total_Taux += (float)$p_facture->Taux; $rowCount++; @endphp @if ($TypeP_old != $p_facture->TypeP) @if ($rowCount > 1)
@endif @endif @if ($rowCount % $rowsPerPage == 0 && $rowCount < count($p_factures))
Catégorie : {{ $p_facture->TypeP }}
Prestataire médical Montant Facture Après Décompte Coût Moyen Taux (%)
@endif @php $TypeP_old = $p_facture->TypeP; @endphp @endforeach
Catégorie (Suite) : {{ $p_facture->TypeP }}
Prestataire médical Montant Facture Après Décompte Coût Moyen Taux (%)
{{ $p_facture->Beneficiaire }} {{ number_format($p_facture->montantFacture, 0, '', ' ') }} XOF {{ number_format($p_facture->apresDecompte, 0, '', ' ') }} XOF {{ number_format($p_facture->Coutmoyen, 0, '', ' ') }} XOF {{ number_format($p_facture->Taux, 1, '.', ' ') }}%
TOTAL GÉNÉRAL CONSOLIDÉ {{ number_format($total_montantFacture, 0, '', ' ') }} XOF {{ number_format($total_apresDecompte, 0, '', ' ') }} XOF {{ number_format($total_Coutmoyen, 0, '', ' ') }} XOF 100 %
@endsection