@extends('admin_dashboard') @section('admin')

Other Projects Member Statement

Account Type: {{ $account->account_type }}

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

GSS No: {{ $account->gss_number }}

From: {{ $startDate->format('d-m-Y') }}

To: {{ $endDate->format('d-m-Y') }}

Opening Balance: {{ number_format($openingBalance, 2) }}

@php $running = $openingBalance; @endphp @foreach($transactions as $t) @php $running += ($t->cr_amount ?? 0) - ($t->dr_amount ?? 0); @endphp @endforeach
Date Invoice Description Debit Credit Balance
{{ \Carbon\Carbon::parse($t->date)->format('d-m-Y') }} {{ $t->invoice_no }} {{ $t->description }} {{ number_format($t->dr_amount ?? 0, 2) }} {{ number_format($t->cr_amount ?? 0, 2) }}{{ number_format($running, 2) }}
@endsection