<%- include('partials/head',{title:'Audit Log',subtitle:'Security and activity history'}) %><div class="panel"><div class="tablewrap"><table><thead><tr><th>Date</th><th>User</th><th>Action</th><th>Entity</th><th>Details</th><th>IP</th></tr></thead><tbody><% logs.forEach(l=>{ %><tr><td><%=l.created_at%></td><td><%=l.user_name||'System'%></td><td><%=l.action%></td><td><%=l.entity_type%> #<%=l.entity_id%></td><td><%=l.details||''%></td><td><%=l.ip||''%></td></tr><% })%></tbody></table></div></div><%- include('partials/foot') %>
