{% set page_group = "admin" %} {% include 'components/head.html' %} {# SweetAlert for notifications #} {# Event Management Styles #}
{% include 'components/nav-account.html' %}
{% include 'components/alerts.html' %}
{# ================================================================ PAGE HEADER ================================================================ #}
Back to Events

Archived Events

{{ archiveStats.total|default(0) }} archived event{{ archiveStats.total != 1 ? 's' : '' }} for {{ store.name }}

{# ================================================================ ARCHIVE STATS ================================================================ #} {% if archiveStats.total > 0 %}
{{ archiveStats.total }} Total Archived
{% for typeName, count in archiveStats.byType|default({}) %}
{{ count }} {{ typeName|capitalize }}
{% endfor %}
{% endif %} {# ================================================================ FILTER BAR ================================================================ #} {% if events|length > 0 %}
{% endif %} {# ================================================================ ARCHIVE GRID ================================================================ #} {% if events|length > 0 %}
{% for event in events %}
{% if event.eventType == 'season' %} {% elseif event.eventType == 'holiday' %} {% elseif event.eventType == 'sale' %} {% else %} {% endif %} {{ event.eventType|capitalize }} {{ event.year }}

{{ event.name }}

{% if event.description %}

{{ event.description|length > 80 ? event.description|slice(0, 80) ~ '...' : event.description }}

{% endif %}

{% if event.startDate and event.endDate %} {{ event.startDate|date('M j, Y') }} - {{ event.endDate|date('M j, Y') }} {% else %} Dates not set {% endif %}

Archived {{ event.archivedAt|date('M j, Y') }}

{% if event.previousStatus %}

Previous status: {% if event.previousStatus == 'active' %} {% elseif event.previousStatus == 'scheduled' %} {% elseif event.previousStatus == 'completed' %} {% elseif event.previousStatus == 'cancelled' %} {% else %} {% endif %} {{ event.previousStatus|capitalize }}

{% endif %}
{% endfor %}
{# No Results Message #}

No matching events

Try adjusting your filters or search terms

{% else %} {# Empty State #}

No Archived Events

Completed or cancelled events can be archived from the main events page. Archived events are preserved here for historical reference.

Back to Events
{% endif %}
{# End Archive Page #} {% include 'components/footer.html' %}
{# ================================================================ JAVASCRIPT ================================================================ #}