{##} {% if welcomeText %}
{{ welcomeText|raw }}
{% endif %} {% for category in categories %} {% set viewable = category.viewable == 'Y' %} {% set hasBackground = category.viewableDate is not empty and category.backgroundImage is not empty %}
{% if hasBackground %} {% else %}
{% endif %}

{{ category.name }}

{% for date in category.eventDates|split(',') %} {{- formatUsing('dateReadable', date, 102) -}} {{- not loop.last ? ', ' -}} {% endfor %}
{% if viewable or canViewInactive %} {{ canViewInactive and not viewable ? __('Preview') : __('Explore') }} {% elseif date() >= date(category.endDate) %}
{{ __('Past') }}
{% else %}
{% if category.viewableDate is not empty %} {{ __('Viewable on') }} {{ category.viewableDate|date("M j \\a\\t g:ia") }} {% else %} {{ __('Upcoming') }} {% endif %}
{% endif %}
{% else %}
{% include 'components/blankSlate.twig.html' with {blankSlate: __('There are no activities available yet. Check back soon!')} %}
{% endfor %}