Morio Sacco

Savings Account Statement

Account #{{ $saving->id }} | Generated: {{ date('d M Y \a\t H:i:s') }}

👤 Member Profile

{{ strtoupper(substr($saving->user->full_name ?? 'U', 0, 1)) }}

{{ $saving->user->full_name ?? 'N/A' }}

Member ID: {{ $saving->user->id_number ?? 'N/A' }} | Membership: {{ $saving->user->membership->membership_number ?? 'N/A' }}

📞 Phone Number
{{ $saving->user->phone_number ?? 'N/A' }}
📧 Email Address
{{ $saving->user->email ?? 'N/A' }}
🏢 Branch
{{ $saving->user->branch->name ?? 'N/A' }}
👤 Gender
{{ $saving->user->gender ?? 'N/A' }}
💰 Account Type
{{ $saving->type_label }}
📊 Account Status
{{ $saving->status_label }}
💵 Current Balance
KSh {{ number_format($saving->current_balance, 0) }}
📅 Account Opened
{{ $saving->created_at->format('d M Y') }}
{{ $saving->transactions->where('type', 'deposit')->count() }} Total Deposits
{{ $saving->transactions->where('type', 'withdrawal')->count() }} Total Withdrawals
{{ $saving->created_at->diffInDays(now()) }} Days Active
{{ $saving->transactions->count() }} Total Transactions

💰 Transaction History

@if($saving->transactions->count() > 0)
@foreach($saving->transactions->sortByDesc('transaction_date') as $transaction) @endforeach
📅 Date & Time 🔢 Transaction # 📊 Type 💵 Amount ⚖️ Balance After 👤 Processed By
{{ $transaction->transaction_date->format('d M Y H:i') }} {{ $transaction->transaction_number }} {{ ucfirst($transaction->type) }} {{ $transaction->type === 'deposit' ? '+' : '-' }}KSh {{ number_format($transaction->amount, 0) }} KSh {{ number_format($transaction->balance_after, 0) }} {{ $transaction->processor->name ?? 'System' }}
@else
📭

No transactions recorded yet

Transaction history will appear here once activity begins

@endif

📅 Account Timeline

{{ $saving->created_at->format('d M Y H:i') }}
🎉 Account Created
Savings account opened with initial deposit of KSh {{ number_format($saving->amount, 0) }}
Account Type: {{ $saving->type_label }} @if($saving->maturity_date)
Maturity Date: {{ $saving->maturity_date->format('d M Y') }} @endif
@foreach($saving->transactions->sortBy('transaction_date') as $transaction)
{{ $transaction->transaction_date->format('d M Y H:i') }}
{{ $transaction->type === 'deposit' ? '💰' : '💸' }} {{ ucfirst($transaction->type) }} Transaction
{{ ucfirst($transaction->type) }} of KSh {{ number_format($transaction->amount, 0) }}
Transaction #: {{ $transaction->transaction_number }}
Balance after: KSh {{ number_format($transaction->balance_after, 0) }}
Processed by: {{ $transaction->processor->name ?? 'System' }}
@endforeach @if($saving->status === 'withdrawn')
{{ now()->format('d M Y H:i') }}
🏦 Account Withdrawn
Savings account has been fully withdrawn
Final balance: KSh {{ number_format($saving->current_balance, 0) }}
@elseif($saving->status === 'matured')
{{ now()->format('d M Y H:i') }}
🎊 Account Matured
Fixed deposit account has reached maturity
Available for withdrawal: KSh {{ number_format($saving->current_balance, 0) }}
@endif
@if($saving->notes)

📝 Account Notes

📋 Important Notes

{{ $saving->notes }}

@endif