@foreach ([
'Reference' => $transaction->reference,
'Kijiwe' => $transaction->kijiwe->name ?? '—',
'Type' => ucfirst($transaction->type),
'Amount' => 'TZS ' . number_format($transaction->amount, 0),
'Category' => ucwords(str_replace('_', ' ', $transaction->category ?? '')),
'Status' => ucfirst($transaction->status),
'Balance After' => $transaction->balance_after ? 'TZS ' . number_format($transaction->balance_after, 0) : '—',
'Requested By' => $transaction->createdBy->name ?? '—',
'Approved By' => $transaction->approvedBy->name ?? '—',
'Rejection Reason' => $transaction->rejection_reason ?? '—',
'Created' => $transaction->created_at->format('d M Y H:i'),
] as $label => $value)
{{ $label }}
{{ $value }}
@endforeach
@if($transaction->description)
Justification
{{ $transaction->description }}
@endif