prepare("SELECT * FROM users WHERE id = 1"); $stmt->execute(); $user = $stmt->fetch(); $stmt = db()->prepare("SELECT * FROM wallets WHERE user_id = 1"); $stmt->execute(); $wallets = $stmt->fetchAll(); // Index wallets by type for easy access $walletMap = []; foreach ($wallets as $w) { $walletMap[$w['type']] = $w; } } catch (Exception $e) { die("Error connecting to database: " . $e->getMessage()); } $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'AfriPay-Tontine: Comprehensive financial services for West Africa.'; $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; ?> AfriPay-Tontine | Dashboard
Hello, 👋

Your financial overview in

Current Account
CFA
Available Balance
Savings
CFA
+2.5% p.a.
Tontine Pot
CFA
3 active groups
Escrow (SafePay)
CFA
Funds locked for delivery
Recent Activity
See all
MTN Mobile Money
Today, 10:45 AM • Deposit
+15 000
Success
Ghana Tontine 🇬🇭
Yesterday • Contribution
-50 000
Pending
Home
Wallets
Tontine
Settings