prepare("SELECT COUNT(*) FROM customers WHERE msp_id = ?"); $total_customers->execute([$msp_id]); $total_customers = $total_customers->fetchColumn(); $onboarding_count = db()->prepare("SELECT COUNT(*) FROM customers WHERE msp_id = ? AND status = 'onboarding'"); $onboarding_count->execute([$msp_id]); $onboarding_count = $onboarding_count->fetchColumn(); $active_count = db()->prepare("SELECT COUNT(*) FROM customers WHERE msp_id = ? AND status = 'active'"); $active_count->execute([$msp_id]); $active_count = $active_count->fetchColumn(); // Recent Customers $stmt = db()->prepare("SELECT * FROM customers WHERE msp_id = ? ORDER BY created_at DESC LIMIT 5"); $stmt->execute([$msp_id]); $recent_customers = $stmt->fetchAll(); include 'header.php'; ?>
Welcome back, . Here's what's happening with your clients.
No customers yet. Add your first one!
Need to streamline your client intake? Use our template builder to create custom onboarding flows.
Manage Templates