@extends('member.layout') @section('title', 'Savings Account Details') @section('content')

{{ ucfirst($saving->type) }} Savings Account

{{ ucfirst($saving->status) }} Opened {{ $saving->created_at->format('M d, Y') }}

Account Summary

Current Balance KSh {{ number_format($saving->amount, 2) }}
Account Type {{ ucfirst($saving->type) }}
Account Status {{ ucfirst($saving->status) }}
@if($saving->type === 'fixed' && $saving->maturity_date)
Maturity Information {{ $saving->maturity_date->format('M d, Y') }} ({{ now()->diffInDays($saving->maturity_date) }} days remaining)
@endif

Account Information

Account Number: {{ $saving->id }}
Opening Date: {{ $saving->created_at->format('M d, Y') }}
Last Updated: {{ $saving->updated_at->format('M d, Y') }}
Account Type: {{ ucfirst($saving->type) }}
Status: {{ ucfirst($saving->status) }}
@if($saving->type === 'fixed' && $saving->maturity_date) Maturity Date: {{ $saving->maturity_date->format('M d, Y') }} @endif

Transaction History

@php $transactions = \App\Models\Transaction::where('user_id', auth()->id()) ->where('reference_id', $saving->id) ->whereIn('type', ['savings_deposit', 'savings_withdrawal']) ->latest() ->take(10) ->get(); @endphp @if($transactions->count() > 0) @foreach($transactions as $transaction) @endforeach
Date Type Amount Status
{{ $transaction->created_at->format('M d, Y H:i') }} @if($transaction->type === 'savings_deposit') Deposit @else Withdrawal @endif {{ $transaction->type === 'savings_deposit' ? '+' : '-' }}KSh {{ number_format($transaction->amount, 2) }} {{ ucfirst($transaction->status) }}
@else
No Transactions Yet

Your transaction history will appear here

@endif

Quick Actions

@if($saving->status === 'active') @if($saving->type === 'recurring') @endif @endif Back to Accounts

Account Benefits

@if($saving->type === 'recurring')
Flexible Access
Deposit and withdraw anytime
Competitive Rates
Earn interest on your savings
@else
Higher Returns
Better interest rates for longer terms
Guaranteed Returns
Fixed returns at maturity
@endif

Need Help?

+254 700 000 000
Call us
savings@morio-sacco.co.ke
Email us
Mon-Fri: 8AM-5PM
Business hours
@push('js') @endpush @endsection