<%- include('../partials/header', { activeMenu: 'audit' }) %>
<%= log.action %>
<%= log.table_name %>
<%= log.row_id || '—' %>
<%= new Date(log.created_at).toLocaleString('en-IN') %>
<%= log.user_id || 'System' %>
<% if (log.notes) { %>
<%= log.notes %>
<% } %>
<% if (log.before_json) { %>

🗂 Before (Old Values)

<%= JSON.stringify(log.before_json, null, 2) %>
<% } %> <% if (log.after_json) { %>

🗃 After (New Values)

<%= JSON.stringify(log.after_json, null, 2) %>
<% } %> <%- include('../partials/footer') %>