@if($trust->allowances && $trust->allowances->count() > 0)

The Trustees shall distribute Trust income and principal to beneficiaries as follows:

@foreach($trust->allowances as $allowance) @endforeach
No.BeneficiaryAmount (RM)FrequencyCurrencyStart DateEnd DateConditions
{{ $loop->iteration }} {{ $allowance->beneficiary ? $allowance->beneficiary->full_name : 'N/A' }} RM {{ number_format($allowance->amount ?? 0, 2) }} {{ ucfirst(str_replace('_', ' ', $allowance->frequency ?? 'monthly')) }} {{ $allowance->currency ?? 'MYR' }} {{ $allowance->start_date ? \Carbon\Carbon::parse($allowance->start_date)->format('M d, Y') : 'N/A' }} {{ $allowance->end_date ? \Carbon\Carbon::parse($allowance->end_date)->format('M d, Y') : 'Ongoing' }} {{ $allowance->conditions ?? 'None' }}
@else

[No allowances specified]

@endif