{% extends "base.html" %}
{% block title %}Activity Log{% endblock %}
{% block content %}
<div class="card p-4"><h2>🧾 User Activity Log</h2><div class="table-responsive"><table class="table table-striped"><thead><tr><th>Date</th><th>User</th><th>Action</th><th>Table</th><th>Record</th><th>Description</th></tr></thead><tbody>{% for l in logs %}<tr><td>{{ l.created_at }}</td><td>{{ l.username }}</td><td>{{ l.action }}</td><td>{{ l.table_name }}</td><td>{{ l.record_id }}</td><td>{{ l.description }}</td></tr>{% else %}<tr><td colspan="6" class="text-center text-muted">No logs yet</td></tr>{% endfor %}</tbody></table></div></div>
{% endblock %}
