<%- include('../partials/header') %> <% title = 'Admin Dashboard'; %> <% if (success_msg && success_msg.length > 0) { %> <% success_msg.forEach(msg => { %>
<%= msg %>
<% }) %> <% } %> <% if (error_msg && error_msg.length > 0) { %> <% error_msg.forEach(msg => { %>
<%= msg %>
<% }) %> <% } %>

Dashboard Administrativo

Usuarios

<%= users.length %>

Tickets

<%= tickets.length %>

Departamentos

<%= departments.length %>

Abiertos

<%= stats.find(s => s.status === 'abierto') ? stats.find(s => s.status === 'abierto').total : 0 %>

Últimos Tickets
<% tickets.slice(0, 5).forEach(t => { %> <% }) %>
#AsuntoUsuarioEstado
#<%= t.id %> <%= t.asunto %> <%= t.usuario_nombre || '' %> <%= t.status %>
<%- include('../partials/footer') %>