{{ include('classroom/partials/header.html.twig') }} {% set lastPayment = payments|last %}

RECU DE SCOLARITE / TUITION RECEIPT {% if not(lastPayment is empty) %} No : {{ lastPayment.code }} {% endif %}

Nom de l’enfant / Child’s name Matricule / Matricule Classe / Class Année / Year Motif de payment / Payment reason
{{std.fullName}} {{std.matricule}} {{sub.classroom.name}} {{sub.schoolyear}} Scolarité / Tuition
{% if not(lastPayment is empty) %} {% endif %}
DÉTAIL DE PAYMENT / PAYMENT DETAIL
Date & Heure / Date & Time {{lastPayment.updatedAt|date('Y-m-d h:i:s') }}
Montant payé / Amount paid {{lastPayment.amount}}F CFA
Methode de paiement / Payment type CASH
Payé par / Paid by {{std.fatherName}}
Reçu par / Received by {{app.user}}
{% set totalPaid = payments|reduce((carry, item) => carry + item.amount, 0) %} {% set totalPaidFixed = totalPaid %} {% set totalToPay = installments|reduce((carry, item) => carry + item.amount, 0) - sub.discount %} {% set reste = (sub.schoolyear.rate + totalToPay) - (totalPaidFixed + sub.amount) %}

HISTORIQUE DE PAIEMENT / PAYMENT HISTORY

{% if(installments) %} {% for installToPay in installments %} {% endfor %} {% endif %}
VERSMENT INSTALMENT A PAYER TO PAY(FCFA) PAYÉ PAID(FCFA) RESTE BALANCE(FCFA) DATE LIMITE DEADLINE
Inscription {{year.code}} {{year.rate}} {{sub.amount}} {{year.rate - sub.amount}} {% if sub.schoolyear.registrationDeadline %}{{ sub.schoolyear.registrationDeadline|date('Y/m/d') }}{% endif %}
{% if(installToPay.ranking == 0) %} Frais d'examen {% else %} {{ installToPay.ranking }} {% endif %} {{ installToPay.amount }} {% set paye =0 %} {% if( installToPay.amount >= totalPaid )%} {% set paye = totalPaid %} {% else %} {% set paye = installToPay.amount %} {% endif %} {% set totalPaid = totalPaid -paye %} {{paye}} {{ installToPay.amount - paye }} {{ installToPay.deadline|date('Y-m-d') }}
TOTAL {{totalToPay + sub.schoolyear.rate}} {{totalPaidFixed + sub.amount}} {{reste}}

Cachier / Le Caissier