<%- include('../partials/header') %> <% title = 'Usuarios y Equipo'; %> <% if (success_msg && success_msg.length > 0) { %> <% success_msg.forEach(msg => { %> <% }) %> <% } %> <% if (error_msg && error_msg.length > 0) { %> <% error_msg.forEach(msg => { %> <% }) %> <% } %>
Catálogo de Cuentas
<% if (users.length === 0) { %> <% } %> <% users.forEach(u => { %> <% }) %>
ID Usuario & Identidad Correo Electrónico Rol en la Plataforma Estado Fecha Alta Acciones
No hay usuarios registrados
#<%= u.id %>
<% if (u.avatar_url) { %> <%= u.nombre %> <% } else { %>
<%= (u.nombre || 'U').charAt(0).toUpperCase() %>
<% } %>
<%= u.nombre %>
Proveedor: <%= u.provider || 'local' %>
<%= u.email %> <% if (u.rol === 'superadmin') { %> Superadmin <% } else if (u.rol === 'admin') { %> Admin <% } else if (u.rol === 'agent') { %> Agente <% } else { %> Cliente <% } %> <% if (u.is_active) { %> Activo <% } else { %> Inactivo <% } %> <%= new Date(u.created_at).toLocaleDateString('es-ES') %>
<% if (u.rol !== 'superadmin') { %>
<% } %>
<%- include('../partials/footer') %>