@extends('adminlte::page') @section('title', 'Money Market Accounts') @section('content_header')

Money Market Accounts

@stop @section('content')
Total Principal
{{ \App\Helpers\CurrencyHelper::format($stats['total_principal']) }}
Invested capital
Total Interest Earned
{{ \App\Helpers\CurrencyHelper::format($stats['total_interest_earned']) }}
Revenue from investments
Active Accounts
{{ number_format($stats['active_accounts']) }}
Currently earning interest
Nearing Maturity
{{ number_format($stats['nearing_maturity']) }}
Require attention
Total Accounts
{{ number_format($stats['total_accounts']) }}
All money market accounts
Matured Accounts
{{ number_format($stats['matured_accounts']) }}
Ready for withdrawal
Avg Interest Rate
@if($moneyMarketAccounts->count() > 0) {{ number_format($moneyMarketAccounts->avg('interest_rate'), 2) }}% @else 0.00% @endif
Current average rate
Total Portfolio Value
{{ \App\Helpers\CurrencyHelper::format($stats['total_principal'] + $stats['total_interest_earned']) }}
Principal + Interest
Clear
@forelse($moneyMarketAccounts as $account) @empty @endforelse
Account # Member Principal Rate Term Interest Total Maturity Status Actions
{{ $account->account_number }}
{{ Str::limit($account->membership->user->full_name ?? 'N/A', 18) }}
{{ $account->membership->membership_number }}
{{ \App\Helpers\CurrencyHelper::format($account->principal_amount, $account->currency_code) }} {{ number_format($account->interest_rate, 2) }}% {{ $account->term_months }}m {{ \App\Helpers\CurrencyHelper::format($account->interest_earned, $account->currency_code) }} {{ \App\Helpers\CurrencyHelper::format($account->total_amount, $account->currency_code) }} {{ $account->maturity_date->format('M d, Y') }} {{ ucfirst($account->status) }}
@if($account->status === 'active') @endif @if($account->status === 'active' || $account->status === 'matured') @endif @if($account->isMatured() && $account->status === 'active') @endif
No Money Market Accounts Yet

Start by adding your first money market account to the system.

Add First Account
@if($moneyMarketAccounts->hasPages()) @endif
@endsection @push('js') @if(session('success')) Swal.fire({ icon: 'success', title: 'Success!', text: '{{ session("success") }}', timer: 3000, showConfirmButton: false }); @endif @if(session('error')) Swal.fire({ icon: 'error', title: 'Error!', text: '{{ session("error") }}', timer: 3000, showConfirmButton: false }); @endif @endpush @section('js') @endsection