'Emily Davis',
'initials' => 'ED',
'title' => 'Product Designer',
'team' => 'Design Team',
'start_date' => 'Dec 15, 2024',
'manager' => 'Sarah Johnson',
'day' => 3,
'total_days' => 30,
'avatar_url' => 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&h=400&fit=crop'
];
$tasks = [
'in_progress' => [
['title' => 'I-9 Form', 'description' => 'Verify employment eligibility documentation', 'due' => 'Dec 10, 2024', 'assignee' => 'Emily Davis'],
['title' => 'Set Up Email Account', 'description' => 'Configure company email and Slack access', 'due' => 'Dec 11, 2024', 'assignee' => 'IT Team'],
['title' => 'Equipment Setup', 'description' => 'Receive and configure laptop and peripherals', 'due' => 'Dec 12, 2024', 'assignee' => 'IT Team'],
],
'upcoming' => [
['title' => 'Benefits Enrollment', 'description' => 'Review and select health insurance options', 'due' => 'Dec 20, 2024'],
['title' => 'Department Orientation', 'description' => 'Meet with design team and review processes', 'due' => 'Dec 22, 2024'],
['title' => 'Security Training', 'description' => 'Complete online security awareness course', 'due' => 'Dec 27, 2024'],
],
'completed' => [
['title' => 'Sign Offer Letter', 'description' => 'Completed by Emily Davis on Dec 5, 2024'],
['title' => 'Background Check', 'description' => 'Completed by HR Team on Dec 6, 2024'],
['title' => 'Upload Profile Photo', 'description' => 'Completed by Emily Davis on Dec 7, 2024'],
['title' => 'Emergency Contact Info', 'description' => 'Completed by Emily Davis on Dec 7, 2024'],
]
];
// Numbers from the user's text for summary
$completed_count_from_text = 12;
$total_tasks_from_text = 20;
$progressPercent = ($completed_count_from_text / $total_tasks_from_text) * 100;
function getStatusChip($status) {
switch ($status) {
case 'In Progress':
return 'In Progress';
case 'Upcoming':
return 'Upcoming';
case 'Completed':
return 'Completed';
default:
return '';
}
}
?>
Onboarding Tasks - FinMox
Onboarding Tasks
Manage and track employee onboarding progress
In Progress (= count($tasks['in_progress']) ?>)
= htmlspecialchars($task['title']) ?>
= htmlspecialchars($task['description']) ?>
Due: = htmlspecialchars($task['due']) ?>
Complete
= htmlspecialchars($task['assignee']) ?>
Upcoming (= count($tasks['upcoming']) ?>)
= htmlspecialchars($task['title']) ?>
= htmlspecialchars($task['description']) ?>
Scheduled: = htmlspecialchars($task['due']) ?>
Completed (= count($tasks['completed']) ?>)
= htmlspecialchars($task['title']) ?>
= htmlspecialchars($task['description']) ?>
Employee Overview
= htmlspecialchars($employee['initials']) ?>
= htmlspecialchars($employee['name']) ?>
= htmlspecialchars($employee['title']) ?> • = htmlspecialchars($employee['team']) ?>
Start Date: = htmlspecialchars($employee['start_date']) ?>
Manager: = htmlspecialchars($employee['manager']) ?>
Day = htmlspecialchars($employee['day']) ?> of = htmlspecialchars($employee['total_days']) ?>
Overall Progress
= $completed_count_from_text ?> of = $total_tasks_from_text ?> tasks
= number_format($progressPercent, 0) ?>%