@extends('admin.layout.pdf') @section('content')
ETAT DES DEPENSES PAR CONTRAT

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

@endif @php $totalmontantFacture = ""; $totalapresDecompte = ""; $totalTaux = ""; @endphp @if (count($depenses) != 0) @foreach ($depenses as $dep) @php (int)$totalmontantFacture = (int)$totalmontantFacture + (int)$dep->montantFacture; (int)$totalapresDecompte = (int)$totalapresDecompte + (int)($dep->apresDecompte); (float)$totalTaux = (float)$totalTaux + (float)$dep->Taux; @endphp @endforeach {{-- --}} @else @endif
Garant No Police Police Collège Mt A Rembourser Mt Remboursé Taux (%)
{{ $dep->Garant }} {{ $dep->numeroPolice }} {{ $dep->libellePolice }} {{ $dep->libelleCollege }} {{ number_format($dep->montantFacture, 0, '', ' ') }} {{ number_format($dep->apresDecompte, 0, '', ' ') }} {{ $dep->Taux }}
TOTAL GENERAL : {{ number_format($totalmontantFacture, 0, '', ' ') }} {{ number_format($totalapresDecompte, 0, '', ' ') }} 100 % {{ $totalTaux }} %
Aucune consommation pour cette police...

@endsection