Customer Not Found

Back to Customer List"; require_once __DIR__ . '/footer.php'; exit; } // Fetch customer $customer = null; try { $stmt = db()->prepare("SELECT * FROM customers WHERE id = ?"); $stmt->execute([$customer_id]); $customer = $stmt->fetch(); } catch (PDOException $e) {} if (!$customer) { echo "

Customer Not Found

Back to Customer List
"; require_once __DIR__ . '/footer.php'; exit; } // Fetch tasks $tasks = []; try { $stmt = db()->prepare("SELECT * FROM onboarding_tasks WHERE customer_id = ? ORDER BY id ASC"); $stmt->execute([$customer_id]); $tasks = $stmt->fetchAll(); } catch (PDOException $e) {} // Calculate progress $total_tasks = count($tasks); $completed_tasks = count(array_filter($tasks, function($t) { return $t['is_completed']; })); $progress = $total_tasks > 0 ? round(($completed_tasks / $total_tasks) * 100) : 0; ?>

Onboarding Checklist:

Manage and track setup tasks for this customer.

Back to List
Overall Onboarding Progress
%
Tasks & Milestones
data-task-id="">