{% extends "ui/templates/base/layout.html" %} {% import "ui/templates/components/macros.html" as ui %} {% block content %}
{{ ui.page_shell('Audit Logs', 'Latest security and admin changes captured from IAM, RBAC, login, audit firm and branch operations.') }}
{{ ui.search_bar('/system-settings/audit-logs', filters.q, filters.per_page) }} {% if logs %}
{% for row in logs %}{% endfor %}
WhenActionEntityActorTarget ScopeDetailsStatus
{{ row.created_at_utc }}
{{ row.action }}
IP {{ row.ip_address or '-' }}
{{ row.entity_type }}
{{ row.entity_name or row.entity_id or '-' }}
{{ row.actor_email or 'System' }}
Audit Firm {{ row.actor_tenant_id or '-' }} • Branch {{ row.actor_branch_id or '-' }}
Audit Firm {{ row.target_tenant_id or '-' }} • Branch {{ row.target_branch_id or '-' }}
{{ row.pretty_details }}
{% if row.status == 'success' %}{{ ui.badge(row.status, 'emerald') }}{% elif row.status == 'denied' %}{{ ui.badge(row.status, 'amber') }}{% else %}{{ ui.badge(row.status, 'rose') }}{% endif %}
{{ ui.pagination(logs_page, '/system-settings/audit-logs', request.url.query) }} {% else %}
{{ ui.empty_state('No audit entries found for the current filter.') }}
{% endif %}
{% endblock %}