<%- include('../partials/app-start') %>
<header class="topbar"><div><p class="kicker">Security</p><h1>Audit log</h1><p class="muted">Recent authentication and attendance actions.</p></div></header>
<section class="panel table-panel"><div class="table-wrap"><table><thead><tr><th>When</th><th>User</th><th>Action</th><th>Entity</th></tr></thead><tbody><% rows.forEach(r=>{ %><tr><td><%= fmtDateTime(r.created_at) %></td><td><strong><%= r.name || 'System' %></strong><small class="block"><%= r.email || '' %></small></td><td><span class="badge"><%= r.action %></span></td><td><%= r.entity_type %> <%= r.entity_id ? '#'+r.entity_id : '' %></td></tr><% }) %></tbody></table></div></section>
<%- include('../partials/app-end') %>
