0, 'active_onboarding' => 0, 'qbrs_scheduled' => 4, 'open_tickets' => 12 ]; try { $stmt = db()->query("SELECT COUNT(*) FROM customers"); $stats['total_customers'] = $stmt->fetchColumn(); $stmt = db()->query("SELECT COUNT(*) FROM customers WHERE status = 'onboarding'"); $stats['active_onboarding'] = $stmt->fetchColumn(); } catch (PDOException $e) { // Handle error gracefully } // Fetch recent customers $recent_customers = []; try { $stmt = db()->query("SELECT * FROM customers ORDER BY created_at DESC LIMIT 5"); $recent_customers = $stmt->fetchAll(); } catch (PDOException $e) { // Handle error } ?>
Welcome back, Admin. Here's what's happening today.
| Customer Name | Email Address | Status | Added On | Action |
|---|---|---|---|---|
| No customers added yet. Add your first customer. | ||||
| Onboarding Details | ||||