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

@endif

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

@endsection