@foreach ($transactions as $transaction) @endforeach
TR ID DATE PARTICULAR DEBIT CREDIT BALANCE
{{ $transaction->id }} {{ $transaction->created_at->format('d/m/y') }} {{ $transaction->transaction_type }} {{ $transaction->comment }} @if ($transaction->transaction_type == 'invoice') {{ bdnumber($transaction->amount) }} @endif @if ($transaction->transaction_type == 'refund') {{ bdnumber($transaction->amount * (-1)) }} @endif @if ($transaction->transaction_type == 'adjustment') {{ bdnumber($transaction->amount) }} @endif @if ($transaction->transaction_type == 'payment') {{ bdnumber($transaction->amount) }} @endif {{ bdnumber($user->balance($transaction->id)) }}