{##} {% set isToday = structure.getToday.format('Y-m-d') == day.date %} {% set specialDay = structure.getSpecialDay(day.date) %} {% set indexDepth = {0: '', 1: 'pl-2', 2: 'pl-4', 3: 'pl-6', 4: 'pl-8'} %}
{% set column = structure.getColumn(day.date) %} {% if specialDay.type == 'School Closure' %}
{{ __('School Closed') }} {{ specialDay.name }}
{% else %}
{% set lastTimeEnd = structure.getStartTime %} {% for item in column %} {% set firstItem = loop.first %} {% if lastTimeEnd is not empty and item.timeStart != lastTimeEnd %}
{% set firstItem = false %} {% endif %}
{{ item.duration >= 15 ? item.title }} {{ item.timeStart|slice(0,5)|trim('0', 'left') }} - {{ item.timeEnd|slice(0,5)|trim('0', 'left') }}
{% set lastTimeEnd = item.timeEnd %} {% if item.date > structure.getToday.format('Y-m-d') or (isToday and item.timeStart >= now) %} {% if gibbonSpaceID and layers['Bookings'].isActive and layers['Bookings'].isBookable and not item.hasStatus('overlap') and format != 'print' %} {% set iconSize = item.duration >= 50 ? 'size-6' : item.duration >= 30 ? 'size-5' : 'size-3' %} {{ icon('solid', 'add', iconSize ~ ' text-gray-600 hover:text-gray-800') }} {% endif %} {% endif %}
{% endfor %}
{% endif %} {% for layer in layers %} {% if structure.isLayerVisible(layer.getType, day.date) %} {% for item in layer.getItemsByDate(day.date) %}
{{ include('ui/timetableItem.twig.html') }}
{% endfor %} {% endif %} {% endfor %}