'HR-2024-1847', 'title' => 'Manager Conflict Resolution', 'status' => 'in-review', 'severity' => 'high', 'department' => 'Engineering', 'assignedTo' => 'Jennifer Smith', 'assignedToRole' => 'Senior HR Manager', 'createdDate' => 'Dec 10, 2024', 'lastUpdate' => '2 hours ago', 'commentsCount' => 8, 'partiesInvolved' => 3, 'tags' => ['Conflict', 'Management', 'Urgent'], 'checklist' => [ ['item' => 'Initial complaint documented', 'completed' => true], ['item' => 'Meeting with complainant scheduled', 'completed' => true], ['item' => 'Meeting with manager', 'completed' => false], ['item' => 'Resolution plan drafted', 'completed' => false], ], 'timeline' => [ ['status' => 'Opened', 'details' => 'Case opened by HR department', 'date' => 'Dec 15, 2024 10:30 AM', 'completed' => true], ['status' => 'Investigation', 'details' => 'Initial interviews conducted', 'date' => 'Dec 18, 2024 2:45 PM', 'completed' => true], ['status' => 'Mediation', 'details' => 'Mediation session scheduled', 'date' => 'Dec 22, 2024 3:00 PM', 'completed' => false], ['status' => 'Resolution', 'details' => 'Awaiting final sign-off', 'date' => null, 'completed' => false], ], 'comments' => [ ['author' => 'Jennifer Smith', 'role' => 'Senior HR Manager', 'time' => '2 hours ago', 'comment' => 'Just completed the meeting with David. He acknowledged the concerns and is willing to work on improving team communication. I\'ve scheduled a follow-up session for next week to review progress.'], ['author' => 'Michael Torres', 'role' => 'Team Lead', 'time' => '1 day ago', 'comment' => 'Thanks for the quick response on this. The team really appreciates that this is being taken seriously. I think we\'re seeing some improvement already in daily standups.'], ] ], // Add other cases here... [ 'id' => 'HR-2024-1852', 'title' => 'Benefits Inquiry - Health Insurance', 'status' => 'open', 'severity' => 'low', 'department' => 'Sales', 'assignedTo' => 'Michael Torres', 'assignedToRole' => 'HR Coordinator', 'createdDate' => 'Dec 12, 2024', 'lastUpdate' => '4 hours ago', 'commentsCount' => 3, 'partiesInvolved' => 1, '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); function get_severity_badge($severity) { switch (strtolower($severity)) { case 'high': return 'bg-red-100 text-red-800'; case 'medium': return 'bg-yellow-100 text-yellow-800'; case 'low': return 'bg-green-100 text-green-800'; default: return 'bg-gray-100 text-gray-800'; } } function get_status_badge($status) { switch (strtolower($status)) { case 'in-review': return 'bg-blue-100 text-blue-800'; case 'open': return 'bg-gray-200 text-gray-800'; case 'closed': return 'bg-green-200 text-green-800'; default: return 'bg-gray-100 text-gray-800'; } } ?>