<%- include('../../partials/sidebar', {user,page}) %>
👥

User Management

<%=user.first_name.charAt(0).toUpperCase()%>

Users (<%=total%> total)

Clear
<% (users||[]).forEach(u => { %> <% }) %>
User Role Plan Status Joined Actions
<%=u.first_name.charAt(0).toUpperCase()%>
<%=u.first_name%> <%=u.last_name%>
<%=u.email%>
<%=u.role%> <%=u.plan%> <%=u.status%> <%= new Date(u.created_at).toLocaleDateString() %>
<% if (u.status !== 'banned') { %> <% } else { %> <% } %> <% if (u.role !== 'admin') { %> <% } %>
<% if (pages > 1) { %>
<% for(let i=1;i<=pages;i++) { %> <%=i%> <% } %>
<% } %>