Loan Transactions

@php($i = 1) @forelse($loan->transactions as $transaction) @empty

No transaction has been entered for this loan

@endforelse
S/N Loan Reference Transactions Type Amount Description Date
{{$i++}} {{$transaction->loan->reference}} {{$transaction->name}} {{($transaction->type == 1) ? 'Debit' : 'Credit'}} {{number_format($transaction->amount,2)}} {{$transaction->description}} {{$transaction->created_at}}