count('wallet_transactions', 'customer_id = :id', ['id' => $customer['customer_id']]); $pagination = paginate($total, $page, 15); $transactions = db()->fetchAll( "SELECT * FROM wallet_transactions WHERE customer_id = :id ORDER BY created_at DESC LIMIT :limit OFFSET :offset", ['id' => $customer['customer_id'], 'limit' => $pagination['per_page'], 'offset' => $pagination['offset']] ); $extraHead = ''; require_once __DIR__ . '/../includes/header.php'; require_once __DIR__ . '/includes/sidebar.php'; ?>
View your wallet balance and transaction history
Redeem your gift card to add funds to your wallet
No transactions yet
| Date | Description | Type | Amount | Balance |
|---|---|---|---|---|
| = formatDate($tx['created_at']) ?> | = htmlspecialchars($tx['description'] ?? ucfirst($tx['type'])) ?> | 'fa-arrow-down', 'purchase', 'withdrawal' => 'fa-arrow-up', default => 'fa-exchange-alt' }; $typeColor = $tx['amount'] > 0 ? 'success' : 'error'; ?> = ucfirst(str_replace('_', ' ', $tx['type'])) ?> | = $tx['amount'] > 0 ? '+' : '' ?>= formatCurrency($tx['amount']) ?> | = formatCurrency($tx['balance_after']) ?> |