<?php  if (!defined('DASHBOARD_ROOT')) { http_response_code(403); exit; } require_once DASHBOARD_ROOT."/core/wallet_monitor.php"; $wallets = WalletMonitor::getWallets(); echo '<div class="wallet-registry"><h3>Wallet Registry</h3>'; foreach ($wallets as $w) { $cur = UI::e($w['currency_code'] ?? '—'); $lbl = UI::e($w['label'] ?? 'Primary ' . ($w['currency_code'] ?? '') . ' Wallet'); $bal = UI::e($w['balance'] ?? '0'); $last = UI::e($w['last_checked'] ?? 'Never'); echo '<div class="wallet-card"><span>' . $cur . '</span><span>' . $lbl . '</span><span>Balance: ' . $bal . '</span><span>Last checked: ' . $last . '</span></div>'; } echo '</div>'; 