@extends('admin.layout.master') @section('content')
Dépenses

{{-- Export Bénéficiaire --}} {{-- Retour --}}

{{ Form::open(['route' => 'admin.etat.validerDepenseFamille', 'method' => 'GET', /* 'target'=>'_blank' , 'onsubmit'=>'showOverlay()',*/ 'id' => 'form_statistique']) }} {{-- --}}
{{ Form::text('adherent', isset($adherent) ? $adherent: old('adherent'), ['class' => ' form-control', 'id' => 'adherent','placeholder'=>"Numéro Adhérent ou Nom Adhérent"]) }} @if (($errors->has('adherent')))
{{ $errors->first('adherent') }}
@endif
{{ Form::select('idSouscripteur', $souscripteurs, old('idSouscripteur'), ['class' => 'js-select2 form-control', 'id' => 'idSouscripteur']) }}
{{ Form::select('idPolice', $polices, old('idPolice'), ['class' => 'js-select2 form-control', 'id' => 'idPolice']) }}
{{ Form::select('idCollege', $colleges, old('idCollege'), ['class' => 'form-control js-select2', 'id' => 'idCollege']) }}
{{ Form::text('idDepense', isset($idDepense) ? $idDepense: old('idDepense'), ['class' => ' form-control', 'id' => 'idDepense']) }}
{{ Form::date('dateDebut', old('dateDebut'), ['class' => 'form-control datepicker', 'id' => 'dateDebut', 'placeholder' => '< Date de Debut']) }} @if (($errors->has('dateDebut')))
{{ $errors->first('dateDebut') }}
@endif
{{ Form::date('dateFin', old('dateFin'), ['class' => 'form-control datepicker', 'id' => 'dateFin', 'placeholder' => '< Date de Fin']) }} @if (($errors->has('dateFin')))
{{ $errors->first('dateFin') }}
@endif


@isset ($depenseFamilles)
@php $total_popActive = 0; $total_popTraite = 0; $total_montantReclame = 0; $total_montantNonRembourse = 0; $total_montantRembourse = 0; $total_coutMoyen = 0; $total_taux = 0; @endphp @foreach ( $depenseFamilles as $depenseFamille ) @php (int)$total_popActive = (int)$total_popActive + ((int)$depenseFamille->popActive); (int)$total_popTraite = (int)$total_popTraite + (int)($depenseFamille->popTraite); (int)$total_montantReclame = (int)$total_montantReclame+ (int)$depenseFamille->montantReclame; (int)$total_montantNonRembourse = (int)$total_montantNonRembourse+ (int)$depenseFamille->NonRembourse; (int)$total_montantRembourse = (int)$total_montantRembourse+ (int)$depenseFamille->montantRembourse; (int)$total_coutMoyen = (int)$total_coutMoyen + (int)$depenseFamille->Coutmoyen; @endphp @endforeach {{--
Matricule Famille Pop. active Pop traitée Montant Réclamé Montant Remboursé Montant Non Remb. Coût moyen
{{ ($depenseFamille->numeroAdherent) }} {{$depenseFamille->adherent}} {{$depenseFamille->popActive}} {{ $depenseFamille->popTraite }} {{-- {{ substr($prestationQuotidienne->beneficiaire, 0, strpos($prestationQuotidienne->beneficiaire, ' ', 200)) }} --}}
{{ number_format($depenseFamille->montantReclame, 0, '', ' ') }}
{{ number_format($depenseFamille->montantRembourse, 0, '', ' ') }} {{ number_format($depenseFamille->NonRembourse, 0, '', ' ') }} {{ number_format($depenseFamille->Coutmoyen, 0, '', ' ') }}
TOTAL GENERAL : {{ $total_popActive }} {{ $total_popTraite }} {{ number_format($total_montantReclame, 0, '', ' ') }}
{{ number_format($total_montantRembourse, 0, '', ' ') }}
{{ number_format($total_montantNonRembourse, 0, '', ' ') }} {{ number_format($total_coutMoyen, 0, '', ' ') }}
--}}
@endif

{{ form::close() }}
{{--
--}} @endsection