@php $rows = $allocationPresentation['allocation_rows'] ?? []; @endphp

Processed payment allocations for installment #{{ $allocationPresentation['installment_no'] ?? '—' }}. The same transaction may appear under other installments when its amount was split across dues.

@if (! empty($allocationPresentation['allocation_overflow']))

Linked receipts on this installment exceed its due amount. Extra cash should have spilled to the next schedule row.

@endif @if ($rows === [])

No processed payment allocations recorded for this installment.

@else
@foreach ($rows as $alloc) @endforeach
Payment date Transaction Payment method Received amount Allocated to this installment Running on this installment Reference Received by
{{ $alloc['transaction_at'] ?? '—' }} {{ $alloc['receipt'] ?? '—' }} {{ $alloc['payment_method'] ?? '—' }} {{ number_format((float) ($alloc['transaction_amount'] ?? 0), 2) }} {{ number_format((float) ($alloc['allocated_to_installment'] ?? 0), 2) }} {{ number_format((float) ($alloc['running_installment_allocation'] ?? $alloc['remaining_transaction_allocation'] ?? 0), 2) }} {{ $alloc['reference'] ?? '—' }} {{ $alloc['received_by'] ?? '—' }}
@endif