| Photo | Nom | Chalet | @foreach($displayYears as $year){{ $year->annee }} | @endforeachTotal Impayés | Total Payés |
|---|---|---|---|---|---|
|
@if($user['user']->photo)
{{ substr($user['user']->name, 0, 1) }}{{ substr($user['user']->lastname, 0, 1) }}
@endif
|
{{ $user['user']->lastname }} {{ $user['user']->name }}
|
{{ $user['user']->numero_chalet }}
|
@foreach($displayYears as $year)
@php
$yearData = $user['yearlyPayments'][$year->annee] ?? null;
$paymentStatus = $yearData ? $yearData['status'] : 'Non payé';
$statusClass = $yearData ? $yearData['status_class'] : 'bg-red-500';
$amount = $yearData ? $yearData['amount_paid'] : $year->montant_cotisation;
@endphp
{{ $amount }} DH
|
@endforeach
{{ $user['totalUnpaid'] }} DH
|
{{ $user['totalPaid'] }} DH
|