@extends('layout.template') @section('title') GestStudent@Etat Payement en date du : {{ $dateTransaction }} @endsection @section('title2') VISUALISER L'ETAT DE PAYEMENT @endsection @section('subtitle') Scolarité @endsection @section('main')

Data Export

Export data to Copy, CSV, Excel, PDF & Print

@php function myround($value, $places = 0) { if ($places < 0) { $places = 0; } $mult = pow(10, $places); $number1 = $value * $mult; $number2 = intval($number1); $number3 = $number1 - $number2; if ($number3 >= 0.5) { return ceil($value * $mult) / $mult; } else { return floor($value * $mult) / $mult; } } $i = 0; $totali = 0; $totalReste = 0; $totalSco = 0; @endphp @foreach ($inscrits as $inscrit) @php $i += 1; $montDu = 0; $payer = 0; @endphp @foreach ($inscritOld as $old) @if ($old->matricule == $inscrit->matricule) @foreach ($montants as $montant) @if ($montant->idFiliere == $old->idFiliere && $montant->idStatut == $old->statut && $montant->annee == $old->annee) @php $scol = $montant->scolarite + $montant->fraisInscription; $montDu += $scol - $old->montant; @endphp @endif @endforeach @endif @endforeach @php $totali += $payer; $totalReste += $reste; $totalSco += $total; if ($total == 0) { $total = 1; } @endphp @endforeach @php if ($totalSco == 0) { $totalSco = 1; } $tauxRecouvrement = myround(($totali / $totalSco) * 100, 3); @endphp
Matricule Nom & Prénom Statut Niveau Filière Période Solde antérieur Montant payé Reste à payer Scolarité Totale Taux de recouvrement(%)
Matricule Nom & Prénom Statut Niveau Filière Période Solde antérieur Montant payé Reste à payer Scolarité Totale Taux de recouvrement(%)
{{ $i }} {{ $inscrit->matricule }} {{ $inscrit->nom }} {{ $inscrit->prenom }} @foreach ($statuts as $statut) @if ($statut->idStatut == $inscrit->statut) {{ $statut->statut }} @endif @endforeach @foreach ($formations as $formation) @if ($inscrit->niveauFormation == $formation->id) {{ $formation->niveauFormation }}{{ $inscrit->annee }} @endif @endforeach @foreach ($filieres as $filiere) @if ($inscrit->idFiliere == $filiere->idFiliere) {{ $filiere->sigleFilieres }} @endif @endforeach @foreach ($academiques as $academique) @if ($inscrit->annee_acad == $academique->annee_acad) {{ $academique->periode }} @endif @endforeach {{ $montDu }} @php $payer = $inscrit->montant; @endphp {{ $payer }} @foreach ($montants as $montant) @if ( $montant->idFiliere == $inscrit->idFiliere && $montant->idStatut == $inscrit->statut && $montant->annee == $inscrit->annee && $montant->periode == $inscrit->annee_acad) @php $total = $montant->fraisInscription + $montant->scolarite; @endphp @endif @endforeach @php $total += $montDu; $reste = $total - $payer; @endphp {{ $reste }} {{ $total }} {{ myround(($payer * 100) / $total, 3) }}%
TOTAL {{ $totali }} {{ $totalReste }} {{ $totalSco }}{{ $tauxRecouvrement }}%
TOTAL {{ $totali }} {{ $totalReste }} {{ $totalSco }} {{ $tauxRecouvrement }}%
@endsection