{% extends 'base.html.twig' %} {% block title %}Überbuchte Termine Standort 4{% endblock %} {% block content %}

Überbuchte Termine (Standort 4)

{% if overbooked|length == 0 %}
Keine überbuchten Termine am Standort 4!
{% else %} {% for entry in overbooked %}
{{ entry.availability.name }} (max. {{ entry.maxSlots }} Plätze)

Termindetails:
{% if entry.availability.startDate %} {{ entry.availability.startDate|date('d.m.Y') }} - {{ entry.availability.endDate|date('d.m.Y') }}
{% endif %} {{ entry.availability.startTime|date('H:i') }} - {{ entry.availability.endTime|date('H:i') }}

Buchungen ({{ entry.appointments|length }})
{% for app in entry.appointments %} entry.maxSlots %}class="table-warning"{% endif %}> {% endfor %}
# Name E-Mail Status Buchungszeitpunkt Warteliste?
{{ loop.index }} {{ app.customer.firstName }} {{ app.customer.lastName }} {{ app.customer.email }} {{ app.status }} {{ app.createdAt ? app.createdAt|date('d.m.Y H:i:s') : '-' }} {% if loop.index > entry.maxSlots %}Warteliste{% endif %}
{% if entry.waitlistCandidates|length > 0 %}
Wartelisten-Kandidaten:
{% for app in entry.waitlistCandidates %} {{ app.customer.firstName }} {{ app.customer.lastName }} ({{ app.customer.email }})
{% endfor %}
{% endif %}
{% endfor %} {% endif %}
{% endblock %}