Savings Account Statement

Account No: {{ $account->account_number }}
Account Name: {{ $account->client_name }}

@php $bal = 0; @endphp @foreach($transactions as $t) @php $bal += ($t->type == 'credit') ? $t->amount : -$t->amount; @endphp @endforeach
Date Type Amount Balance
{{ $t->created_at->format('d M Y') }} {{ strtoupper($t->type) }} {{ number_format($t->amount,2) }} {{ number_format($bal,2) }}

Printed on: {{ now()->format('d M Y h:i A') }}