{% extends 'admin_base.html.twig' %} {% block title %}Kurse – Fit wie ein Fisch{% endblock %} {% block header_title %}Kurse{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block content %} {% set actions %} CSV {% endset %} {% include 'admin/fisch/_fisch_page_header.html.twig' with { title: 'Kursübersicht', icon: 'swimming-pool', subtitle: 'Saison ' ~ seasonYear ~ ' — nach Schwimmbad gruppiert', breadcrumb_current: 'Kurse', actions_html: actions } %} {% for label, messages in app.flashes %} {% for message in messages %} {% endfor %} {% endfor %}
Kurse

{{ stats.courses }}

Belegt

{{ stats.booked }}/{{ stats.capacity }}

Frei

{{ stats.free }}

Voll

{{ stats.full }}

{{ poolGroups|length }} Standorte
{% if poolGroups is empty %}
Keine Kurse für Saison {{ seasonYear }}.
{% else %}
{% for group in poolGroups %} {% set pool = group.pool %}

{{ pool.name }}

{{ group.courseCount }} Kurs{{ group.courseCount != 1 ? 'e' : '' }} · {{ group.booked }}/{{ group.capacity }} Plätze {% if group.fullCount > 0 %} · {{ group.fullCount }} voll {% endif %}

{% set poolPct = group.capacity > 0 ? (group.booked / group.capacity * 100)|round : 0 %}
{{ poolPct }}%
{% for row in group.rows %} {% set course = row.course %}
{{ course.startTimeFormatted }} {{ row.ageLabel }} {% if not course.isActive %} inaktiv {% endif %}
{{ row.booked }}/{{ row.capacity }} {% if row.isFull %}voll{% endif %}
{% endfor %}
{% endfor %}

Keine Kurse passen zu den Filtern.

{% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}