@extends('layouts.app') @section('title','My Savings') @section('page-title','My Savings') @section('content')
Savings Account
Your savings history and current balance
${{ number_format($member->savings_balance, 2) }}
Current Balance
${{ number_format($totals['deposits'], 2) }}
Total Deposits
${{ number_format($totals['withdrawals'], 2) }}
Total Withdrawals
Transaction History
@forelse($transactions as $txn) @empty @endforelse
DateTypeModeAmountBalance AfterNote
{{ $txn->created_at->format('M d, Y') }} {{ ucfirst($txn->type) }} {{ ucfirst(str_replace('_',' ',$txn->payment_mode)) }} {{ $txn->type==='deposit'?'+':'-' }}${{ number_format($txn->amount,2) }} ${{ number_format($txn->balance_after,2) }} {{ $txn->note ?? '—' }}
No savings transactions yet
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection