{% extends 'layout/base.twig' %} {% set title = 'Error Logs' %} {% set pageTitle = 'Error Logs' %} {% set pageDescription = 'Monitor and manage application errors' %} {% set pageIcon = 'fas fa-bug' %} {% set currentFilters = filters|default({resolved: '', type: '', sort: 'last_occurred_at', order: 'desc'}) %} {% block content %}

Total Errors

{{ errorStats.total_errors|default(0) }}

Unresolved

{{ errorStats.unresolved|default(0) }}

Last 24h

{{ errorStats.last_24h|default(0) }}

Occurrences

{{ errorStats.total_occurrences|default(0) }}

Clear
Showing {{ pagination.showing_from }} to {{ pagination.showing_to }} of {{ pagination.total }} error(s)
{% if errors is defined and errors is not empty %}
{% for error in errors %} {% set errorTypeShort = error.error_type|split('\\')|last %} {% set isResolved = error.is_resolved %} {% endfor %}
Error Location Occurrences Last Occurred Status Actions
{{ error.error_id }}

{{ errorTypeShort }}

{{ error.error_message }}

{{ error.error_file|split('/')|last|split('\\')|last }}

Line {{ error.error_line }}

{{ error.occurrences }}×
{{ error.last_occurred_at|date("M d, H:i") }}
{% if isResolved %} Resolved {% else %} Unresolved {% endif %}
{% if not isResolved %} {% endif %}
{% else %}

No Errors Found

{% if currentFilters.resolved or currentFilters.type %} No errors match your filter criteria. {% else %} Great! Your application is running smoothly. {% endif %}

{% endif %}
{% if pagination.total_pages > 1 %}
Page {{ pagination.current_page }} of {{ pagination.total_pages }}
{% if pagination.current_page > 1 %} Previous {% endif %} {% set range = 2 %} {% set startPage = max(1, pagination.current_page - range) %} {% set endPage = min(pagination.total_pages, pagination.current_page + range) %} {% if startPage > 1 %} 1 {% if startPage > 2 %} ... {% endif %} {% endif %} {% for i in startPage..endPage %} {% if i == pagination.current_page %} {{ i }} {% else %} {{ i }} {% endif %} {% endfor %} {% if endPage < pagination.total_pages %} {% if endPage < pagination.total_pages - 1 %} ... {% endif %} {{ pagination.total_pages }} {% endif %} {% if pagination.current_page < pagination.total_pages %} Next {% endif %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}