@php
$user = Auth::user();
$unreadCount = 0;
$pageTitle = match(request()->route()->getName()) {
'dashboard' => ['Overview', 'Welcome back'],
'cashflow.index' => ['Cash Flow Ledger', 'Monitor and control your money movement across all accounts.'],
'cashflow.store' => ['Cash Flow Ledger', 'Track income & expenses'],
'budgets' => ['Budget Planner', 'Set spending limits'],
'goals' => ['Financial Goals', 'Track milestones'],
'alerts' => ['Smart Alerts', 'Real-time updates'],
'future_planning' => ['Wealth Forecast', 'AI projections'],
'loans' => ['Credit & Loans', 'Manage debt'],
'lending' => ['Lending Portfolio', 'Track loans'],
'investments' => ['Investments', 'Monitor portfolio'],
'accounts.index' => ['Accounts', 'Linked accounts'],
'bank_reconciliation' => ['Reconciliation', 'Match statements'],
'chart_of_accounts' => ['Account Structure', 'Chart of accounts'],
'reports' => ['Performance Reports', 'Analytics'],
'aiassistant' => ['Financial Copilot', 'AI advisor'],
'predictive' => ['Forecasting Engine', 'Cash flow'],
'notifications' => ['Notifications', 'Activity'],
'preferences.index' => ['Preferences', 'Settings'],
'preferences.profile' => ['Preferences', 'Settings'],
'preferences.currency' => ['Preferences', 'Settings'],
'plans' => ['Plans & Pricing', 'Subscription'],
'family.index' => ['Family Access', 'Manage family'],
'family.create' => ['Family Access', 'Manage family'],
'family.join' => ['Family Access', 'Manage family'],
'bank-reconciliation.index' => ['Reconciliation', 'Match statements'],
'account-structure.index' => ['Account Structure', 'Chart of accounts'],
'admin.dashboard' => ['Admin Panel', 'System management'],
'admin.plans' => ['Admin', 'Manage plans'],
'admin.tenants' => ['Admin', 'Manage tenants'],
'admin.users' => ['Admin', 'Manage users'],
'admin.subscriptions' => ['Admin', 'Subscriptions'],
'admin.email' => ['Admin', 'Send email'],
'archive.index' => ['Archive', 'Deleted records'],
default => ['Financial OS', 'Command center'],
};
@endphp