@extends('layouts.app') @section('title', 'Dashboard') @section('content')
👥
👥

{{ number_format($totalMembers) }}

Active Members
@if($recentMembers->count() > 0)
Latest: {{ $recentMembers->first()->first_name }} @if(isset($orgFinancials)) @endif
@endif
💰
💰

{{ number_format($totalIncome) }}

Total Income
All recorded credits @if(isset($orgFinancials)) @endif
💸
💸

{{ number_format($totalExpense) }}

Total Expenses
All approved debits @if(isset($orgFinancials)) @endif
@if($pendingApprovals > 0)
⚠️
⚠️

{{ $pendingApprovals }}

Approvals Needed
Review Pending Items →
@else

0

Pending Actions
You are all caught up!
@endif

Quick Actions

@can('members.create') 👤 Add Member @endcan @can('finance.create') 💸 New Expense 💳 Record Income @endcan 📊 Budgets

Recent Activity

View All
@forelse($recentActivity as $log)
{{ $log->action === 'Create' ? '➕' : ($log->action === 'Delete' ? '🗑️' : '✏️') }}
{{ $log->user->full_name ?? 'System' }} {{ strtolower($log->action) }}d a {{ rtrim($log->table_name, 's') }}
{{ $log->created_at->diffForHumans() }}
@empty
No recent activity
@endforelse
@if(isset($orgFinancials)) @endif @endsection