diff --git a/assets/pasted-20251217-030415-8770fac7.png b/assets/pasted-20251217-030415-8770fac7.png new file mode 100644 index 0000000..90e0e88 Binary files /dev/null and b/assets/pasted-20251217-030415-8770fac7.png differ diff --git a/hr_cases.php b/hr_cases.php index 5c5ffc1..fce8ae2 100644 --- a/hr_cases.php +++ b/hr_cases.php @@ -46,16 +46,105 @@ $cases = [ 'severity' => 'low', 'department' => 'Sales', 'assignedTo' => 'Michael Torres', - 'assignedToRole' => 'Senior HR Manager', + 'assignedToRole' => 'HR Coordinator', 'createdDate' => 'Dec 12, 2024', 'lastUpdate' => '4 hours ago', 'commentsCount' => 3, 'partiesInvolved' => 1, - 'tags' => ['Benefits', 'Inquiry'], - 'checklist' => [], - 'timeline' => [], - 'comments' => [] + 'tags' => ['Benefits', 'Inquiry', 'Insurance'], + 'checklist' => [ + ['item' => 'Received employee question', 'completed' => true], + ['item' => 'Forwarded to benefits provider', 'completed' => true], + ['item' => 'Awaiting provider response', 'completed' => false] + ], + 'timeline' => [ + ['status' => 'Opened', 'details' => 'Employee submitted a question about health insurance coverage.', 'date' => 'Dec 12, 2024 9:00 AM', 'completed' => true] + ], + 'comments' => [ + ['author' => 'Michael Torres', 'role' => 'HR Coordinator', 'time' => '4 hours ago', 'comment' => 'I have forwarded the inquiry to our insurance provider. Should have an answer within 2 business days.'] + ] ], + [ + 'id' => 'HR-2024-1850', + 'title' => 'FMLA Request - Medical Leave', + 'status' => 'open', + 'severity' => 'medium', + 'department' => 'Marketing', + 'assignedTo' => 'Jennifer Smith', + 'assignedToRole' => 'Senior HR Manager', + 'createdDate' => 'Dec 11, 2024', + 'lastUpdate' => '1 day ago', + 'commentsCount' => 2, + 'partiesInvolved' => 1, + 'tags' => ['FMLA', 'Leave', 'Medical'], + 'checklist' => [ + ['item' => 'Received FMLA request form', 'completed' => true], + ['item' => 'Verify employee eligibility', 'completed' => true], + ['item' => 'Awaiting medical certification', 'completed' => false], + ['item' => 'Notify manager of leave dates', 'completed' => false] + ], + 'timeline' => [ + ['status' => 'Request Received', 'details' => 'FMLA request form submitted by employee.', 'date' => 'Dec 11, 2024 11:00 AM', 'completed' => true], + ['status' => 'Eligibility Verified', 'details' => 'Employee eligibility for FMLA confirmed.', 'date' => 'Dec 12, 2024 3:00 PM', 'completed' => true], + ['status' => 'Pending Certification', 'details' => 'Awaiting required medical certification from healthcare provider.', 'date' => null, 'completed' => false] + ], + 'comments' => [ + ['author' => 'Jennifer Smith', 'role' => 'Senior HR Manager', 'time' => '1 day ago', 'comment' => 'Eligibility for FMLA has been confirmed. I have notified the employee that we are now waiting for the medical certification documents to proceed.'] + ] + ], + [ + 'id' => 'HR-2024-1851', + 'title' => 'Onboarding Documentation', + 'status' => 'closed', + 'severity' => 'low', + 'department' => 'General', + 'assignedTo' => 'Michael Torres', + 'assignedToRole' => 'HR Coordinator', + 'createdDate' => 'Dec 9, 2024', + 'lastUpdate' => '3 days ago', + 'commentsCount' => 1, + 'partiesInvolved' => 1, + 'tags' => ['Onboarding', 'New Hire'], + 'checklist' => [ + ['item' => 'Sent welcome packet', 'completed' => true], + ['item' => 'Received signed offer letter', 'completed' => true], + ['item' => 'Completed I-9 verification', 'completed' => true] + ], + 'timeline' => [ + ['status' => 'Offer Sent', 'details' => 'Job offer and welcome packet sent to new hire.', 'date' => 'Dec 5, 2024', 'completed' => true], + ['status' => 'Documents Signed', 'details' => 'Received all signed onboarding documents.', 'date' => 'Dec 8, 2024', 'completed' => true], + ['status' => 'Onboarding Complete', 'details' => 'All onboarding steps have been successfully completed.', 'date' => 'Dec 9, 2024', 'completed' => true] + ], + 'comments' => [ + ['author' => 'Michael Torres', 'role' => 'HR Coordinator', 'time' => '3 days ago', 'comment' => 'All onboarding paperwork for the new hire is complete and has been filed. Marking this case as closed.'] + ] + ], + [ + 'id' => 'HR-2024-1855', + 'title' => 'Workplace Safety Concern', + 'status' => 'in-review', + 'severity' => 'high', + 'department' => 'Facilities', + 'assignedTo' => 'Jennifer Smith', + 'assignedToRole' => 'Senior HR Manager', + 'createdDate' => 'Dec 14, 2024', + 'lastUpdate' => '6 hours ago', + 'commentsCount' => 5, + 'partiesInvolved' => 2, + 'tags' => ['Safety', 'Facilities', 'Urgent'], + 'checklist' => [ + ['item' => 'Anonymous report received', 'completed' => true], + ['item' => 'Initial walkthrough completed', 'completed' => false], + ['item' => 'Interviewed relevant staff', 'completed' => false] + ], + 'timeline' => [ + ['status' => 'Report Filed', 'details' => 'Anonymous safety concern regarding the warehouse was received.', 'date' => 'Dec 14, 2024 4:30 PM', 'completed' => true], + ['status' => 'Investigation Started', 'details' => 'Opened an official investigation into the reported concern.', 'date' => 'Dec 15, 2024 9:00 AM', 'completed' => false] + ], + 'comments' => [ + ['author' => 'Jennifer Smith', 'role' => 'Senior HR Manager', 'time' => '6 hours ago', 'comment' => 'I have received the anonymous report and will be conducting an initial walkthrough of the facilities tomorrow morning to assess the situation. All further updates will be logged here.'] + ] + ] ]; $cases_json = json_encode($cases); diff --git a/onboarding.php b/onboarding.php index 48b7f05..9fb857b 100644 --- a/onboarding.php +++ b/onboarding.php @@ -5,6 +5,34 @@ if (!isset($_SESSION['user_id'])) { exit; } require_once 'db/config.php'; + +// Template data from the React snippet +$templateTasks = [ + ['name' => "Setup Development Environment", 'status' => "in-progress", 'category' => "IT"], + ['name' => "Complete HR Documentation", 'status' => "completed", 'category' => "HR"], + ['name' => "Benefits Enrollment", 'status' => "completed", 'category' => "HR"], + ['name' => "Team Introduction Meeting", 'status' => "pending", 'category' => "Manager"], + ['name' => "Assign First Project", 'status' => "pending", 'category' => "Manager"], + ['name' => "Security Training", 'status' => "pending", 'category' => "IT"], + ['name' => "Code Review Process Training", 'status' => "pending", 'category' => "Manager"], + ['name' => "Setup Communication Tools", 'status' => "completed", 'category' => "IT"], +]; + +$completedTasks = count(array_filter($templateTasks, function($t) { return $t['status'] === "completed"; })); +$progressPercent = ($completedTasks / count($templateTasks)) * 100; + +$status_map = [ + 'completed' => ['icon' => 'check-circle-2', 'color' => 'text-green-500', 'bg' => 'bg-green-100'], + 'in-progress' => ['icon' => 'clock', 'color' => 'text-blue-500', 'bg' => 'bg-blue-100'], + 'pending' => ['icon' => 'file-text', 'color' => 'text-gray-500', 'bg' => 'bg-gray-100'] +]; + +$category_map = [ + 'IT' => 'text-red-500', + 'HR' => 'text-blue-500', + 'Manager' => 'text-purple-500', +]; + ?> @@ -13,17 +41,107 @@ require_once 'db/config.php'; Onboarding - FinMox +
- -
-
-

Onboarding

+
+
+

Onboarding Plan for Sarah Kim

+ +
+ + +
+ +
+

Welcome to the Team, Sarah!

+

We're thrilled to have you on board. This onboarding plan is designed to help you get up to speed quickly and smoothly. Please review the checklist and let your manager know if you have any questions.

+
+
+ + +
+ +
+
+

+ + Employee Information +

+
+ Sarah Kim +
+

Sarah Kim

+

New Hire

+
+
+
+
+ +
+

Position

+

Senior Full-Stack Engineer

+
+
+
+ +
+

Email

+

sarah.kim@finmox.com

+
+
+
+ +
+

Start Date

+

December 17, 2025

+
+
+
+
+
+ + +
+
+

+ + Onboarding Checklist +

+
+
+ Progress + % +
+
+
+
+
+
+ +
+
+ +
+
+

+ +
+
+ +
+
+
+
+
+ - + \ No newline at end of file