{% extends 'layout/base.twig' %} {% set title = 'TLD Import Logs' %} {% set pageTitle = 'TLD Import Logs' %} {% set pageDescription = 'History of TLD registry import operations' %} {% set pageIcon = 'fas fa-history' %} {% block content %} {# Header with Actions #}

Import Logs

History of TLD registry import operations

Back to Registry
{# Statistics Cards #}
{# Total Imports Card #}

Total Imports

{{ importStats.total_imports|default(0) }}

{# Successful Imports Card #}

Successful

{{ importStats.successful_imports|default(0) }}

{# Failed Imports Card #}

Failed

{{ importStats.failed_imports|default(0) }}

{# Last Import Card #}

Last Import

{% if importStats.last_import is not empty %} {{ importStats.last_import|date('M j, H:i') }} {% else %} Never {% endif %}

{# Import Logs Table #}
{% if imports is not empty %} {# Table View (Desktop) #} {# Card View (Mobile) #}
{% for import in imports %} {% set icon = typeIcons[import.import_type]|default('fa-file-import') %} {% set label = typeLabels[import.import_type]|default(import.import_type|capitalize) %}

{{ label }}

{{ import.started_at|date('M j, Y H:i') }}

{% if import.status == 'completed' %} {% set mobileStatusClass = 'bg-green-100 dark:bg-green-500/10 text-green-700 dark:text-green-400' %} {% set mobileStatusIcon = 'fa-check-circle' %} {% set mobileStatusText = 'Completed' %} {% elseif import.status == 'failed' %} {% set mobileStatusClass = 'bg-red-100 dark:bg-red-500/10 text-red-700 dark:text-red-400' %} {% set mobileStatusIcon = 'fa-times-circle' %} {% set mobileStatusText = 'Failed' %} {% else %} {% set mobileStatusClass = 'bg-yellow-100 dark:bg-yellow-500/10 text-yellow-700 dark:text-yellow-400' %} {% set mobileStatusIcon = 'fa-clock' %} {% set mobileStatusText = 'In Progress' %} {% endif %} {{ mobileStatusText }}
Total TLDs: {{ import.total_tlds }}
New: {{ import.new_tlds }}
Updated: {{ import.updated_tlds }}
{% if import.failed_tlds > 0 %}
Failed: {{ import.failed_tlds }}
{% endif %}
{% endfor %}
{# Pagination #} {% if pagination.total_pages > 1 %}
{% if pagination.current_page > 1 %} Previous {% endif %} {% if pagination.current_page < pagination.total_pages %} Next {% endif %}
{% endif %} {% else %}

No Import Logs

No TLD imports have been performed yet.

Back to Registry
{% endif %}
{# Import Details Modal #} {% endblock %}