This commit is contained in:
ludo
2023-11-25 20:23:21 +01:00
parent be468304c9
commit fcc564b6d8
7 changed files with 46 additions and 44 deletions

View File

@@ -7,8 +7,24 @@
</div>
</div>
@if ($payments ?? false)
@foreach ($payments as $payment)
@endforeach
<table class="table">
<thead>
<th>Date</th>
<th>Type</th>
<th class="text-right">Montant</th>
<th>Ref</th>
</thead>
<tbody>
@foreach ($payments as $payment)
<tr>
<td>{{ $payment['date'] }}</td>
<td>{{ $payment_types[$payment['payment_type']] }}</td>
<td class="text-right font-weight-bold">{{ sprintf('%01.2f', $payment['amount']) }} </td>
<td>{{ $payment['reference'] }}</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@push('js')