{% extends 'wfbo/_layout.html.twig' %} {% block wfbo_title %}Settings Audit Trail{% endblock %} {% macro format_value(value) %} {%- if value is null -%} — {%- elseif value is same as(true) -%} Yes {%- elseif value is same as(false) -%} No {%- elseif value is iterable -%} {{ value|json_encode }} {%- else -%} {{ value }} {%- endif -%} {% endmacro %} {% import _self as helpers %} {% set actionLabels = { 'update-settings': 'General Settings', 'update-vk-settings': 'Video Karera Settings', 'update-pataasan-settings': 'Pataasan Settings', 'update-pataasan-multiplier': 'Pataasan Multiplier', 'update-race-dividends': 'Race Dividends', } %} {% block wfbo_content %}

History of changes made to WFBO settings — General, Video Karera, Pataasan, and Race Dividends.

{% for log in auditLogs %} {% else %} {% endfor %}
Date Settings Group Changes Performed By

{{ log.createdAt|date('M d, Y') }}

{{ log.createdAt|date('h:i A') }}

{{ actionLabels[log.action]|default(log.action) }} {% if log.changes %} {% for field, change in log.changes %}
{{ field }}: {{ helpers.format_value(change.old) }} → {{ helpers.format_value(change.new) }}
{% endfor %} {% else %} — {% endif %}
{% if log.actor %} {{ log.actor.firstName }} {{ log.actor.lastName }} {% else %} — {% endif %}
No settings changes recorded yet.
{# ── Pagination ── #} {% if totalPages > 1 %}

Page {{ currentPage }} of {{ totalPages }}  ·  {{ total }} total

{% if currentPage > 1 %} ← Previous {% endif %} {% if currentPage < totalPages %} Next → {% endif %}
{% endif %} {% endblock %}