@extends('layouts.app') @section('title', 'Savings Report') @section('page-title', 'Savings Report') @section('content')
Reset
Total Accounts

{{ $summary['total_accounts'] }}

Total Deposits

₹{{ number_format($summary['total_deposits'], 2) }}

Total Withdrawals

₹{{ number_format($summary['total_withdrawals'], 2) }}

Total Balance

₹{{ number_format($summary['total_balance'], 2) }}

Savings Details
@forelse($savings as $saving) @empty @endforelse @if($savings->count() > 0) @endif
Savings # Customer Scheme Type Amount Deposit Date Maturity Date Status
{{ $saving->savings_number }} {{ $saving->customer->name }} {{ $saving->scheme->name ?? 'N/A' }} {{ ucfirst($saving->type) }} {{ $saving->type === 'withdrawal' ? '-' : '+' }}₹{{ number_format($saving->amount, 2) }} {{ $saving->deposit_date->format('d M Y') }} {{ $saving->maturity_date ? $saving->maturity_date->format('d M Y') : 'N/A' }} {{ ucfirst($saving->status) }}

No savings found

Total: ₹{{ number_format($summary['total_deposits'] - $summary['total_withdrawals'], 2) }}
@endsection