<%- include('../partials/header') %> <% title = 'Mis Tickets'; %> <% const totalTickets = tickets.length; const openTickets = tickets.filter(t => t.status === 'abierto').length; const inProgressTickets = tickets.filter(t => t.status === 'en_progreso').length; const closedTickets = tickets.filter(t => t.status === 'cerrado').length; %> <% if (success_msg && success_msg.length > 0) { %> <% success_msg.forEach(msg => { %> <% }) %> <% } %> <% if (error_msg && error_msg.length > 0) { %> <% error_msg.forEach(msg => { %> <% }) %> <% } %>
Total Solicitudes
<%= totalTickets %>
Historial acumulado
Abiertos
<%= openTickets %>
Pendientes de atención
En Progreso / FSM
<%= inProgressTickets %>
Con técnico asignado
Resueltos
<%= closedTickets %>
Casos cerrados
Bandeja de Tickets
<%= tickets.length %>
<% if (tickets.length === 0) { %> <% } %> <% tickets.forEach(ticket => { %> <% }) %>
ID Asunto & Descripción Departamento Prioridad Estado Técnico / FSM Fecha Acción
Sin tickets
No tienes tickets abiertos actualmente

Si tienes algún problema o requieres asistencia técnica, genera un ticket aquí.

Crear mi primer ticket
#<%= ticket.id %>
<%= ticket.asunto %>
<%= ticket.departamento_nombre || 'General' %> <% if (ticket.prioridad === 'critica') { %> Crítica <% } else if (ticket.prioridad === 'alta') { %> Alta <% } else if (ticket.prioridad === 'media') { %> Media <% } else { %> Baja <% } %> <% if (ticket.status === 'abierto') { %> Abierto <% } else if (ticket.status === 'en_progreso') { %> En Progreso <% } else { %> Cerrado <% } %> <% if (ticket.asignado_nombre) { %>
<%= ticket.asignado_nombre %>
<% } else { %> Sin asignar <% } %>
<%= new Date(ticket.created_at).toLocaleDateString('es-ES', { day: '2-digit', month: 'short', year: 'numeric' }) %> Ver
<%- include('../partials/footer') %>