@extends('layouts.app') @section('title', 'Savings') @section('page-title', 'Savings') @section('content')
All Savings Accounts
New Account
@forelse($savings as $saving) @empty @endforelse
Savings # Customer Type Principal/Monthly Maturity Amount Date Status Actions
{{ $saving->savings_number }} {{ $saving->customer->name }} {{ $saving->savings_type ?? 'RD' }} @if($saving->savings_type === 'RD') ₹{{ number_format($saving->monthly_deposit ?? 0, 2) }}/month @elseif($saving->savings_type === 'FD' || $saving->savings_type === 'MIS') ₹{{ number_format($saving->principal_amount ?? 0, 2) }} @else ₹{{ number_format($saving->amount, 2) }} @endif ₹{{ number_format($saving->maturity_amount ?? 0, 2) }} {{ $saving->deposit_date->format('d M Y') }} {{ ucfirst($saving->status) }}
No savings accounts found.
{{ $savings->links() }}
@endsection