@extends('layouts.app') @section('content')

Banking Dashboard

Total Balance

{{ formatCurrency($totalBalance) }}

Total Accounts

{{ $accounts->count() }}

Active Accounts

{{ $accounts->where('is_active', true)->count() }}

Bank Accounts
@forelse($accounts as $account) @empty @endforelse
Account Name Bank Type Balance Actions
{{ $account->name }} {{ $account->account_number ?: 'No Acc Number' }}
{{ $account->bank_name }} {{ str_replace('_', ' ', $account->account_type) }} {{ formatCurrency($account->current_balance) }}

No bank accounts found. Start by adding one!

Add Account
Recent Transactions
View All
@forelse($recentTransactions as $tx)
{{ date('M d, Y', strtotime($tx->date)) }} {{ $tx->type === 'credit' ? '+' : '-' }}{{ formatCurrency($tx->amount) }}
{{ $tx->description }}
{{ $tx->account->name }}
@empty

No recent transactions.

@endforelse
@endsection