@extends('adminlte::page') @section('title', 'Deposit to Savings Account') @section('content')

Deposit Funds

@csrf
Account Information
Member:
{{ $saving->user->full_name }}
Account Type:
{{ $saving->type_label }}
Current Balance:
KSh {{ number_format($saving->current_balance, 2) }}
Account Status:
{{ $saving->status_label }}
@error('amount') {{ $message }} @enderror Enter the amount you want to deposit
@error('notes') {{ $message }} @enderror
Transaction Preview
Current Balance KSh {{ number_format($saving->current_balance, 2) }}
Deposit Amount KSh 0.00
New Balance KSh {{ number_format($saving->current_balance, 2) }}

Account Summary

KSh {{ number_format($saving->current_balance, 2) }} CURRENT BALANCE

{{ $saving->transactions()->where('type', 'deposit')->count() }} DEPOSITS
{{ $saving->transactions()->where('type', 'withdrawal')->count() }} WITHDRAWALS

Recent Transactions

@forelse($saving->transactions()->limit(5)->get() as $transaction)
{{ $transaction->type_label }} {{ $transaction->transaction_date->format('d M Y') }}
{{ $transaction->formatted_amount }}
@empty
No transactions yet
@endforelse
@stop @push('js') @endpush