Morio Sacco

Savings Accounts Report

Generated on: {{ date('d M Y H:i:s') }}

Report Period: All Time

Total Savings Accounts: {{ $savings->count() }}

Total Savings Amount: KSh {{ number_format($savings->sum('amount'), 2) }}

Active Accounts: {{ $savings->where('status', 'active')->count() }}

Generated By: {{ auth()->user()->full_name }}

{{ $savings->count() }}
Total Accounts
{{ $savings->where('status', 'active')->count() }}
Active Accounts
{{ $savings->where('status', 'withdrawn')->count() }}
Withdrawn Accounts
{{ $savings->where('status', 'matured')->count() }}
Matured Accounts
KSh {{ number_format($savings->sum('amount'), 2) }}
Total Savings
KSh {{ number_format($savings->where('status', 'active')->sum('amount'), 2) }}
Active Savings
{{ $savings->where('type', 'fixed')->count() }}
Fixed Accounts
{{ $savings->where('type', 'regular')->count() }}
Regular Accounts
@foreach($savings as $saving) @endforeach
ID Member Name Membership No. Amount (KSh) Type Status Maturity Date Created Date Branch Phone Email
{{ $saving->id }} {{ $saving->user->full_name ?? 'N/A' }} {{ $saving->user->membership->membership_number ?? 'N/A' }} {{ number_format($saving->amount, 2) }} {{ ucfirst($saving->type) }} {{ ucfirst($saving->status) }} {{ $saving->maturity_date ? $saving->maturity_date->format('d M Y') : 'N/A' }} {{ $saving->created_at->format('d M Y') }} {{ $saving->user->branch->name ?? 'N/A' }} {{ $saving->user->phone_number ?? 'N/A' }} {{ $saving->user->email ?? 'N/A' }}