@extends('adminlte::page') @section('title', 'Withdraw from Savings Account') @section('content')

Withdraw 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 }}
@if($saving->current_balance <= 0)
Insufficient Funds!
This savings account has no funds available for withdrawal.
@else
@error('amount') {{ $message }} @enderror Maximum withdrawal: KSh {{ number_format($saving->current_balance, 2) }}
@error('notes') {{ $message }} @enderror
Transaction Preview
Current Balance KSh {{ number_format($saving->current_balance, 2) }}
Withdrawal Amount KSh 0.00
Remaining Balance KSh {{ number_format($saving->current_balance, 2) }}
@endif
@if($saving->current_balance > 0) @endif

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') @if($saving->current_balance > 0) @endif @endpush