@extends('layouts.app') @section('title', 'Dashboard') @section('page-title', 'Treasurer Dashboard') @push('styles') @endpush @section('content') {{-- ── Good Standing Alerts ──────────────────────────────────────────────── --}} @if($lciRiskFlag || $oldBalFlag) @else
Good Standing Confirmed — All LCI compliance thresholds are currently met.
@endif {{-- ── Balance Widgets ───────────────────────────────────────────────────── --}}
Administrative Account
${{ number_format($adminBalance, 2) }}
{{ $adminAccount?->bank_name ?? '—' }} @if($adminAccount?->account_no) · A/C {{ $adminAccount->account_no }} @endif
Activity (Public) Account
${{ number_format($activityBalance, 2) }}
{{ $activityAccount?->bank_name ?? '—' }} @if($activityAccount?->account_no) · A/C {{ $activityAccount->account_no }} @endif
{{-- ── Quick Stats ───────────────────────────────────────────────────────── --}}
Income This Month
${{ number_format($monthlyIncome, 2) }}
Expenses This Month
${{ number_format($monthlyExpense, 2) }}
Active Members
{{ $activeMembers }}
Overdue Invoices
{{ $overdueInvoices->count() }}
{{-- ── 6-Month Trend ─────────────────────────────────────────────────── --}}
6-Month Financial Trend
Board Report
{{-- ── Task Progress ─────────────────────────────────────────────────── --}}
Task Progress
@foreach($taskProgress as $key => $prog)
{{ $prog['label'] }} {{ $prog['completed'] }}/{{ $prog['total'] }}
@endforeach View All Tasks
{{-- ── Recent Transactions ───────────────────────────────────────────── --}}
Recent Transactions
View All
@forelse($recentTransactions as $tx) @empty @endforelse
Date Account Category Amount
{{ $tx->transaction_date->format('d M Y') }} {{ $tx->account->type === 'administrative' ? 'Admin' : 'Activity' }} {{ $tx->category }} {{ $tx->type === 'income' ? '+' : '−' }}${{ number_format($tx->amount, 2) }}
No transactions yet.
{{-- ── Overdue Invoices ──────────────────────────────────────────────── --}}
Overdue Dues
View All
@forelse($overdueInvoices->take(6) as $inv)
{{ $inv->member->full_name }}
{{ $inv->days_overdue }} days overdue @if($inv->lci_compliance_flag) · Good Standing risk @endif
${{ number_format($inv->balance_due, 2) }}
@empty
All dues are current!
@endforelse
@endsection @push('scripts') @endpush