'✨', 'update' => '📝', 'comment' => '💬', 'view' => '👁️', 'assign' => '👤', 'status_change' => '🔄' ]; return $icons[$actionType] ?? '•'; } function formatAction($event) { $actions = [ 'create' => 'created this ticket', 'update' => 'updated this ticket', 'comment' => 'added a comment', 'view' => 'viewed this ticket', 'assign' => 'assigned this ticket', 'status_change' => 'changed the status' ]; return $actions[$event['action_type']] ?? $event['action_type']; } function formatDetails($details, $actionType) { if ($actionType === 'update' && is_array($details)) { $changes = []; foreach ($details as $field => $value) { if ($field === 'old_value' || $field === 'new_value') continue; $changes[] = "" . htmlspecialchars($field) . ": " . htmlspecialchars($value); } return implode(', ', $changes); } return ''; } ?> Ticket #<?php echo $ticket['ticket_id']; ?>
← Dashboard
👤 Admin
">

" data-field="title" disabled>

"> ">P

Comments

Enable Markdown
Preview Markdown
"; echo "
"; echo "" . htmlspecialchars($displayName) . ""; echo "" . date('M d, Y H:i', strtotime($comment['created_at'])) . ""; echo "
"; echo "
"; if ($comment['markdown_enabled']) { // For markdown comments, use JavaScript to render echo ""; } else { // For non-markdown comments, convert line breaks to
and escape HTML echo nl2br(htmlspecialchars($comment['comment_text'])); } echo "
"; echo "
"; } ?>

No activity recorded yet.