@extends('layouts.portal') @section('title', 'Dashboard') @section('content')
Total Balance
{{ money($summary['total_balance']) }}
Active Loans
{{ number_format($summary['active_loans']) }}
Loan Outstanding
{{ money($summary['total_outstanding']) }}
Interest Accrued
{{ money($summary['interest_accrued']) }}
@if($activeLoans->isNotEmpty())

Loan duration & interest

All loans
@foreach($activeLoans as $loan)
{{ $loan->loan_no }}
{{ $loan->loanProduct->name ?? 'Loan' }} ยท Outstanding {{ money($loan->outstanding_principal) }}
@endforeach
@endif

My Accounts

View all
@forelse($accounts as $account) @empty @endforelse
Account No.TypeBalance
{{ $account->account_no }} {{ ucfirst(str_replace('_',' ',$account->account_type)) }} {{ money($account->balance) }}
No active accounts.

My Loans

View all
@forelse($loans->take(5) as $loan) @empty @endforelse
Loan No.ProductOutstandingStatus
{{ $loan->loan_no }} {{ $loan->loanProduct->name ?? 'โ€”' }} {{ money($loan->outstanding_principal) }}
No loans on file.
@if($recentTransactions->isNotEmpty())

Recent Transactions

@foreach($recentTransactions as $txn) @endforeach
DateAccountNarrationAmount
{{ $txn->value_date?->format('d M Y') ?? $txn->created_at->format('d M Y') }} {{ $txn->account->account_no ?? 'โ€”' }} {{ \Illuminate\Support\Str::limit($txn->narration ?? 'โ€”', 40) }} {{ money($txn->amount) }}
@endif @endsection