src/StartPlatz/Bundle/EventBundle/Resources/views/Default/_registration.batch.tailwind.html.twig line 1

Open in your IDE?
  1. {# Registration Section - Tailwind Version #}
  2. {# Defaults definiert in event-single.tailwind.html.twig (styles block) #}
  3. <section id="{% if lang == 'en' or isEnglish %}registration{% else %}anmeldung{% endif %}" class="bg-registration registration-accent py-12">
  4.     <div class="max-w-4xl mx-auto px-4">
  5.         {# Determine price source - batch takes precedence for multi-batch events #}
  6.         {% set displayPrice = null %}
  7.         {% set isTaxIncluded = false %}
  8.         {% set isFreeForKiCampus = false %}
  9.         {% set isFreeForCommunity = false %}
  10.         {% if isMultiBatchEvent and batch and batch.priceInEuroCent %}
  11.             {% set displayPrice = batch.priceInEuroCent %}
  12.             {% set isTaxIncluded = batch.isTaxIncluded %}
  13.             {% set isFreeForKiCampus = batch.isFreeForKiCampus %}
  14.             {% set isFreeForCommunity = batch.isFreeForCommunity %}
  15.         {% elseif event is defined and event and event.priceInEuroCent %}
  16.             {% set displayPrice = event.priceInEuroCent %}
  17.             {% set isTaxIncluded = event.isTaxIncluded %}
  18.             {% set isFreeForKiCampus = event.isFreeForKiCampus %}
  19.             {% set isFreeForCommunity = event.isFreeForCommunity %}
  20.         {% endif %}
  21.         {# Event Details Box #}
  22.         {% if event is defined %}
  23.             <div class="bg-white/10 backdrop-blur rounded-xl p-4 mb-6">
  24.                 <div class="flex flex-wrap justify-between gap-4 text-white">
  25.                     {# When #}
  26.                     <div class="flex items-center gap-2">
  27.                         <span class="text-xl">&#128197;</span>
  28.                         <div>
  29.                             <strong>{% if isEnglish %}When:{% else %}Wann:{% endif %}</strong>
  30.                             {% if isMultiBatchEvent and batch and batch.startDate %}
  31.                                 {{ batch.startDate|date('d.m.Y H:i') }}{% if batch.endDate %} - {{ batch.endDate|date('H:i') }} Uhr{% endif %}
  32.                             {% elseif event.startDate %}
  33.                                 {{ event.startDate|date('d.m.Y H:i') }}{% if event.endDate %} - {{ event.endDate|date('H:i') }} Uhr{% endif %}
  34.                             {% endif %}
  35.                         </div>
  36.                     </div>
  37.                     {# Where #}
  38.                     <div class="flex items-center gap-2">
  39.                         <span class="text-xl">&#128205;</span>
  40.                         <div>
  41.                             <strong>{% if isEnglish %}Where:{% else %}Wo:{% endif %}</strong>
  42.                             {% if event.location %}{{ event.location }}{% elseif event.isOnline %}Online{% else %}STARTPLATZ{% endif %}
  43.                         </div>
  44.                     </div>
  45.                     {# Fee #}
  46.                     {% if displayPrice is not null %}
  47.                         <div class="flex items-center gap-2">
  48.                             <span class="text-xl">&#128176;</span>
  49.                             <div>
  50.                                 <strong>{% if isEnglish %}Fee:{% else %}Gebuehr:{% endif %}</strong>
  51.                                 {% if displayPrice == 0 %}
  52.                                     {% if isEnglish %}free{% else %}kostenlos{% endif %}
  53.                                 {% else %}
  54.                                     {{ (displayPrice/100)|number_format(2, ',', '.') }} EUR
  55.                                     {% if isTaxIncluded %}{% if isEnglish %}incl. VAT{% else %}inkl. MwSt.{% endif %}{% else %}{% if isEnglish %}excl. VAT{% else %}zzgl. MwSt.{% endif %}{% endif %}
  56.                                 {% endif %}
  57.                             </div>
  58.                         </div>
  59.                     {% endif %}
  60.                 </div>
  61.             </div>
  62.             {# KI Campus Free Access Box #}
  63.             {% if displayPrice and isFreeForKiCampus %}
  64.                 <div class="bg-green-50 border border-green-200 rounded-xl p-4 mb-4">
  65.                     <div class="flex items-start gap-3">
  66.                         <span class="text-green-500 text-xl">&#10003;</span>
  67.                         <div>
  68.                             <strong class="text-green-700">
  69.                                 {% if isEnglish %}Free for KI Campus members{% else %}Kostenlos fuer KI Campus Mitglieder{% endif %}
  70.                             </strong>
  71.                             <p class="text-sm text-gray-600 mt-1">
  72.                                 {% if isEnglish %}
  73.                                     Join now for just EUR49/month and get access to this and many other free AI courses and events!
  74.                                 {% else %}
  75.                                     Werde Mitglied fuer nur 49EUR/Monat und erhalte Zugang zu diesem und vielen weiteren kostenlosen KI-Kursen und Events!
  76.                                 {% endif %}
  77.                             </p>
  78.                             <a target="_blank" href="https://ki-campus.onepage.me/" class="inline-block mt-2 px-4 py-2 bg-green-500 text-white rounded-lg hover:bg-green-600 transition-colors text-sm font-semibold">
  79.                                 {% if isEnglish %}Become a KI Campus member now{% else %}Jetzt KI Campus Mitglied werden{% endif %}
  80.                             </a>
  81.                         </div>
  82.                     </div>
  83.                 </div>
  84.             {% endif %}
  85.             {# Community Free Access Box #}
  86.             {% if displayPrice and isFreeForCommunity %}
  87.                 <div class="bg-green-50 border border-green-200 rounded-xl p-4 mb-4">
  88.                     <div class="flex items-start gap-3">
  89.                         <span class="text-green-500 text-xl">&#10003;</span>
  90.                         <div>
  91.                             <strong class="text-green-700">
  92.                                 {% if isEnglish %}Free for Community members{% else %}Kostenlos fuer Community Mitglieder{% endif %}
  93.                             </strong>
  94.                             <p class="text-sm text-gray-600 mt-1">
  95.                                 {% if isEnglish %}
  96.                                     As a Community member, you get free access to this event!
  97.                                 {% else %}
  98.                                     Als Community Mitglied erhaeltst Du kostenlosen Zugang zu diesem Event!
  99.                                 {% endif %}
  100.                             </p>
  101.                         </div>
  102.                     </div>
  103.                 </div>
  104.             {% endif %}
  105.             {# Application Status #}
  106.             {% if application.applicationStatus is defined and application.applicationStatus is not empty %}
  107.                 <div class="bg-blue-50 border border-blue-200 rounded-xl p-4 mb-4">
  108.                     <strong class="text-blue-700">{{ phrases.event_phrase_application_status|default('Anmeldestatus:') }}</strong>
  109.                     <p class="text-blue-600 mt-1">
  110.                         {% if application.applicationStatus == 'started' %}
  111.                             {{ phrases.event_phrase_status_started|default('Du bist vorgemerkt. Sobald Du Deine E-Mail Adresse bestaetigt hast, wird die Anmeldung gueltig.') }}
  112.                         {% elseif application.applicationStatus == 'applied' %}
  113.                             {% if event is defined and event and event.isFormalLanguage %}
  114.                                 {{ phrases.event_phrase_status_applied_formal|default('Sie sind angemeldet. Wir freuen uns auf Sie!') }}
  115.                             {% else %}
  116.                                 {{ phrases.event_phrase_status_applied|default('Du bist angemeldet. Wir freuen uns auf Dich!') }}
  117.                             {% endif %}
  118.                         {% else %}
  119.                             {{ phrases.event_phrase_status_other|default('Du bist angemeldet mit dem Status ==') }} {{ application.applicationStatus }}
  120.                         {% endif %}
  121.                     </p>
  122.                 </div>
  123.             {% endif %}
  124.         {% endif %}
  125.         {# Ticket Availability Counter #}
  126.         {% if settings.showParticipantCounter|default(false) %}
  127.             {% set maxParticipants = settings.maxNumber|default(100) %}
  128.             {% set countedStatuses = settings.countStatus|default(['applied', 'approved']) %}
  129.             {% set registered = 0 %}
  130.             {% if 'started' in countedStatuses and batch.startedCount is not null %}
  131.                 {% set registered = registered + batch.startedCount %}
  132.             {% endif %}
  133.             {% if 'applied' in countedStatuses and batch.appliedCount is not null %}
  134.                 {% set registered = registered + batch.appliedCount %}
  135.             {% endif %}
  136.             {% if 'approved' in countedStatuses and batch.approvedCount is not null %}
  137.                 {% set registered = registered + batch.approvedCount %}
  138.             {% endif %}
  139.             {% if 'rejected' in countedStatuses and batch.rejectedCount is not null %}
  140.                 {% set registered = registered + batch.rejectedCount %}
  141.             {% endif %}
  142.             {% set available = maxParticipants - registered %}
  143.             <div class="bg-white/10 backdrop-blur rounded-xl p-3 mb-6 text-center text-white">
  144.                 {% if isEnglish %}
  145.                     <strong>{{ registered }} of {{ maxParticipants }} seats taken</strong> |
  146.                     <strong class="text-yellow-300">{{ available }} left</strong> - don't miss your spot
  147.                 {% else %}
  148.                     <strong>{{ registered }} von {{ maxParticipants }} Plaetzen belegt</strong> |
  149.                     <strong class="text-yellow-300">{{ available }} uebrig</strong> - sichere dir deinen Platz
  150.                 {% endif %}
  151.             </div>
  152.         {% endif %}
  153.         {# Registration Form #}
  154.         {% if application.applicationStatus is defined and application.applicationStatus is empty %}
  155.             {# Waiting List or Full Notice #}
  156.             {% if settings.maxNumber > 0 and batch.applicationsCount >= settings.maxNumber %}
  157.                 {% if settings.hasWaitingList %}
  158.                     <h2 class="text-2xl font-bold text-white text-center mb-6">
  159.                         {{ phrases.event_phrase_all_seats_booked_waiting_list|default('Alle Plaetze sind gebucht - Bitte registriere Dich fuer die Warteliste') }}
  160.                     </h2>
  161.                 {% else %}
  162.                     <h2 class="text-2xl font-bold text-white text-center mb-6">
  163.                         {{ phrases.event_phrase_all_seats_booked_no_registration|default('Alle Plaetze sind gebucht - Eine Anmeldung ist leider nicht moeglich') }}
  164.                     </h2>
  165.                 {% endif %}
  166.             {% endif %}
  167.             {# Show form if not full OR has waiting list #}
  168.             {% if (settings.maxNumber == 0 or batch.applicationsCount < settings.maxNumber) or (settings.maxNumber > 0 and batch.applicationsCount >= settings.maxNumber and settings.hasWaitingList) %}
  169.                 {# Form Container #}
  170.                 <div class="bg-white rounded-2xl p-6 shadow-xl">
  171.                     {{ form_start(form) }}
  172.                     {{ form_errors(form) }}
  173.                     {# Name Fields (Side by Side) #}
  174.                     <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
  175.                         <div>
  176.                             {{ form_widget(form.firstName, {'attr': {
  177.                                 'class': 'w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[color:var(--registration-accent,#9632FF)] focus:border-transparent outline-none transition-all',
  178.                                 'placeholder': phrases.phrase_form_firstName_placeholder ~ ' (*)'
  179.                             }}) }}
  180.                         </div>
  181.                         <div>
  182.                             {{ form_widget(form.lastName, {'attr': {
  183.                                 'class': 'w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[color:var(--registration-accent,#9632FF)] focus:border-transparent outline-none transition-all',
  184.                                 'placeholder': phrases.phrase_form_lastName_placeholder ~ ' (*)'
  185.                             }}) }}
  186.                         </div>
  187.                     </div>
  188.                     {# Startup Name (Optional) #}
  189.                     {% if batch.askForTeam %}
  190.                         <div class="mb-4">
  191.                             {{ form_widget(form.startupName, {'attr': {
  192.                                 'class': 'w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[color:var(--registration-accent,#9632FF)] focus:border-transparent outline-none transition-all',
  193.                                 'placeholder': 'Firma'
  194.                             }, 'required': false}) }}
  195.                         </div>
  196.                     {% endif %}
  197.                     {# Email #}
  198.                     <div class="mb-4">
  199.                         {{ form_widget(form.email, {'attr': {
  200.                             'class': 'w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[color:var(--registration-accent,#9632FF)] focus:border-transparent outline-none transition-all',
  201.                             'placeholder': 'E-mail (*)'
  202.                         }}) }}
  203.                     </div>
  204.                     {# Phone #}
  205.                     {% if batch.hasIncludePhone %}
  206.                         <div class="mb-4">
  207.                             {{ form_widget(form.phone, {'attr': {
  208.                                 'class': 'w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[color:var(--registration-accent,#9632FF)] focus:border-transparent outline-none transition-all',
  209.                                 'placeholder': 'Phone Number'
  210.                             }, 'required': false}) }}
  211.                             <p class="text-sm text-gray-500 mt-1">
  212.                                 {{ phrases.request_phone_number_for_updates|default('Bitte gib Deine Telefonnummer an, damit wir Dich im Fall von Aenderungen erreichen koennen.') }}
  213.                             </p>
  214.                         </div>
  215.                     {% endif %}
  216.                     {# LinkedIn #}
  217.                     {% if batch.hasIncludeLinkedIn %}
  218.                         <div class="mb-4">
  219.                             {{ form_widget(form.linkedin, {'attr': {
  220.                                 'class': 'w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[color:var(--registration-accent,#9632FF)] focus:border-transparent outline-none transition-all'
  221.                             }, 'required': false}) }}
  222.                         </div>
  223.                     {% endif %}
  224.                     {# Extra Fields (Dynamic) #}
  225.                     {% if attribute(settings, 'extraFields') is defined %}
  226.                         {% set extraFields = attribute(settings, 'extraFields') %}
  227.                         {% for extraField in extraFields %}
  228.                             {% set formField = attribute(form, extraField.field) %}
  229.                             {% if extraField.type == 'checkbox' %}
  230.                                 <div class="mb-4">
  231.                                     <label class="flex items-start gap-3 cursor-pointer">
  232.                                         {{ form_widget(formField, {'attr': {
  233.                                             'class': 'mt-1 w-5 h-5 accent-[color:var(--registration-accent,#9632FF)] border-gray-300 rounded'
  234.                                         }, 'required': extraField.required}) }}
  235.                                         <span class="text-gray-600 text-sm">{{ extraField.label }}</span>
  236.                                     </label>
  237.                                 </div>
  238.                             {% else %}
  239.                                 <div class="mb-4">
  240.                                     {{ form_widget(formField, {'attr': {
  241.                                         'class': 'w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[color:var(--registration-accent,#9632FF)] focus:border-transparent outline-none transition-all'
  242.                                     }, 'required': extraField.required}) }}
  243.                                 </div>
  244.                             {% endif %}
  245.                         {% endfor %}
  246.                     {% endif %}
  247.                     {# Applicant Types #}
  248.                     {% if settings.applicantTypes is defined and settings.applicantTypes %}
  249.                         <div class="mb-4">
  250.                             {{ form_widget(form.applicantType, {'attr': {
  251.                                 'class': 'w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[color:var(--registration-accent,#9632FF)] focus:border-transparent outline-none transition-all'
  252.                             }, 'required': false}) }}
  253.                         </div>
  254.                     {% endif %}
  255.                     {# Newsletter Permission #}
  256.                     {% if batch.hasIncludeNewsletterPermission %}
  257.                         <div class="mb-4">
  258.                             <label class="flex items-start gap-3 cursor-pointer">
  259.                                 {{ form_widget(form.hasNewsletterPermissionGiven, {'attr': {
  260.                                     'class': 'mt-1 w-5 h-5 accent-[color:var(--registration-accent,#9632FF)] border-gray-300 rounded'
  261.                                 }, 'required': false}) }}
  262.                                 <span class="text-gray-600 text-sm">
  263.                                     {% if application.lang == 'DE' %}
  264.                                         Ja, ich moechte gerne ueber weitere Veranstaltungen informiert werden.
  265.                                     {% else %}
  266.                                         Yes, I would like to be informed about further events.
  267.                                     {% endif %}
  268.                                 </span>
  269.                             </label>
  270.                         </div>
  271.                     {% endif %}
  272.                     {# Volunteer Consent #}
  273.                     {% if settings.hasIncludeVolunteerConsent is defined and settings.hasIncludeVolunteerConsent %}
  274.                         <div class="mb-4">
  275.                             <label class="flex items-start gap-3 cursor-pointer">
  276.                                 {{ form_widget(form.hasVolunteerAgreed, {'attr': {
  277.                                     'class': 'mt-1 w-5 h-5 accent-[color:var(--registration-accent,#9632FF)] border-gray-300 rounded'
  278.                                 }, 'required': false}) }}
  279.                                 <span class="text-gray-600 text-sm">
  280.                                     {% if application.lang == 'DE' %}
  281.                                         Ja, ich wuerde mich gerne als Volunteer, Mentor oder Unterstuetzer einbringen
  282.                                     {% else %}
  283.                                         Yes, I would like to contribute as a volunteer, mentor, or supporter
  284.                                     {% endif %}
  285.                                 </span>
  286.                             </label>
  287.                         </div>
  288.                     {% endif %}
  289.                     {# Terms Consent #}
  290.                     {% if batch.hasIncludeTermsConsent %}
  291.                         <div class="mb-4 p-3 bg-gray-50 rounded-lg">
  292.                             <p class="text-sm text-gray-500">
  293.                                 {% if application.lang == 'DE' %}
  294.                                     Bei unseren Veranstaltungen koennen Aufnahmen fuer Social Media gemacht werden.
  295.                                     <br>Mit Deiner Anmeldung stimmst Du zu, dass Bildaufnahmen fuer Social Media verwendet werden duerfen.
  296.                                 {% else %}
  297.                                     At our events, recordings for social media can be made.
  298.                                     <br>By registering, you agree that image recordings may be used for social media.
  299.                                 {% endif %}
  300.                             </p>
  301.                         </div>
  302.                     {% endif %}
  303.                     {# AI Hub Trial Membership Note #}
  304.                     {% if batch.productId > 322 and batch.productId < 330 %}
  305.                         <div class="mb-4 p-3 bg-gray-50 rounded-lg">
  306.                             <p class="text-sm text-gray-500">
  307.                                 (*) die Probemitgliedschaft im AI Hub verlaengert sich nicht automatisch und wird 30 Tage nach Ende der ausgewaehlten AI-Summer-School-Ausgabe automatisch und ohne zusaetzliche Kosten gekuendigt.
  308.                             </p>
  309.                         </div>
  310.                     {% endif %}
  311.                     {# Price Information #}
  312.                     {% if batch.priceInEuroCent %}
  313.                         <div class="mb-4 p-3 bg-gray-50 rounded-lg">
  314.                             {% if application.lang == 'DE' %}
  315.                                 <strong>Der Standardpreis betraegt {{ application.priceInEuroCent / 100|number_format(0, ',', '.') }}EUR</strong> (zzgl. MwSt.)
  316.                                 {% if application.discountPercent %}
  317.                                     <br>
  318.                                     Du erhaelst einen Discount wegen <i>{{ application.discountReason }}</i> in Hoehe von {{ application.discountPercent }}%
  319.                                     und daher betraegt der Preis fuer Dich {{ application.realPriceinEuroCent / 100|number_format(0, ',', '.') }}EUR (zzgl. MwSt.)
  320.                                 {% endif %}
  321.                                 <br>
  322.                                 {% if application.realPriceinEuroCent %}
  323.                                     <small class="text-gray-500">Mit Klick auf "Jetzt anmelden" wirst Du angemeldet und ein Zahlungsvorgang bei unserem Dienstleister Monsum gestartet</small>
  324.                                 {% endif %}
  325.                             {% else %}
  326.                                 <strong>The standard price is {{ application.priceInEuroCent / 100|number_format(0, ',', '.') }}EUR</strong>
  327.                                 {% if application.discountPercent %}
  328.                                     <br>
  329.                                     You will receive a discount due to <i>{{ application.discountReason }}</i> in the amount of {{ application.discountPercent }}%
  330.                                     and therefore the price for you is {{ application.realPriceinEuroCent / 100|number_format(0, ',', '.') }}EUR
  331.                                 {% endif %}
  332.                                 <br>
  333.                                 {% if application.realPriceinEuroCent %}
  334.                                     <small class="text-gray-500">By clicking "Register Now" you will be registered and a payment process will be started with our service provider Monsum</small>
  335.                                 {% endif %}
  336.                             {% endif %}
  337.                         </div>
  338.                     {% endif %}
  339.                     {# Submit Button #}
  340.                     {% set label = phrases.phrase_form_button_call_to_act %}
  341.                     <div class="text-center mt-6">
  342.                         {{ form_widget(form.finish, {'attr': {
  343.                             'class': 'px-8 py-4 bg-gray-900 text-white font-bold text-lg rounded-xl hover:bg-gray-800 transition-colors cursor-pointer'
  344.                         }, 'label': label}) }}
  345.                     </div>
  346.                     {# CSRF Token #}
  347.                     {% if not embed|default(false) %}
  348.                         {{ form_row(form._token) }}
  349.                     {% endif %}
  350.                     {{ form_end(form, {'render_rest': false}) }}
  351.                     {# Meta Pixel Lead Event - fires on form submit #}
  352.                     {% if event is defined and event.metaPixelId %}
  353.                         <script>
  354.                             (function() {
  355.                                 var form = document.querySelector('form[name="{{ form.vars.name }}"]');
  356.                                 if (!form) return;
  357.                                 var isSubmitting = false;
  358.                                 form.addEventListener('submit', function(e) {
  359.                                     if (isSubmitting) return true;
  360.                                     e.preventDefault();
  361.                                     e.stopPropagation();
  362.                                     if (typeof fbq !== 'undefined') {
  363.                                         var submitted = false;
  364.                                         function submitForm() {
  365.                                             if (submitted) return;
  366.                                             submitted = true;
  367.                                             isSubmitting = true;
  368.                                             form.submit();
  369.                                         }
  370.                                         fbq('track', 'Lead', {}, function() {
  371.                                             console.log('Meta Pixel Lead confirmed');
  372.                                             submitForm();
  373.                                         });
  374.                                         setTimeout(function() {
  375.                                             console.log('Meta Pixel fallback timeout');
  376.                                             submitForm();
  377.                                         }, 1000);
  378.                                     } else {
  379.                                         isSubmitting = true;
  380.                                         form.submit();
  381.                                     }
  382.                                     return false;
  383.                                 });
  384.                             })();
  385.                         </script>
  386.                     {% endif %}
  387.                     {# Reduced Tickets Info #}
  388.                     {% if batch.priceInEuroCent and attribute(phrases, 'phrase_reduced_tickets') is defined %}
  389.                         <div class="mt-4">
  390.                             <p class="text-sm text-gray-500">{{ phrases.phrase_reduced_tickets }}</p>
  391.                         </div>
  392.                     {% endif %}
  393.                 </div>
  394.             {% endif %}
  395.         {% endif %}
  396.     </div>
  397.     {# Multi-Batch: Other Dates Section #}
  398.     {% if isMultiBatchEvent and futureBatches|length > 1 %}
  399.         <div class="max-w-4xl mx-auto px-4 mt-12" id="{{ isEnglish ? 'OtherDates' : 'WeitereTermine' }}">
  400.             <h3 class="text-2xl font-bold text-white text-center mb-6">
  401.                 {{ phrases.event_phrase_other_dates|default('Weitere Termine') }}
  402.             </h3>
  403.             <div class="space-y-3">
  404.                 {% for futureBatch in futureBatches %}
  405.                     {% if futureBatch.id != batch.id %}
  406.                         <a href="{{ path('event_show_single_by_date', {'slug': event.slug, 'date': futureBatch.startDate|date('Y-m-d')}) }}"
  407.                            class="block bg-white rounded-xl p-4 hover:shadow-lg transition-shadow">
  408.                             <div class="flex flex-wrap items-center justify-between gap-4">
  409.                                 <div>
  410.                                     <h5 class="text-lg font-semibold text-gray-900">
  411.                                         {% if lang == 'DE' %}
  412.                                             {{ futureBatch.startDate|date('d. F Y', 'Europe/Berlin')|replace({
  413.                                                 'January': 'Januar', 'February': 'Februar', 'March': 'Maerz',
  414.                                                 'April': 'April', 'May': 'Mai', 'June': 'Juni',
  415.                                                 'July': 'Juli', 'August': 'August', 'September': 'September',
  416.                                                 'October': 'Oktober', 'November': 'November', 'December': 'Dezember'
  417.                                             }) }}
  418.                                         {% else %}
  419.                                             {{ futureBatch.startDate|date('F d, Y') }}
  420.                                         {% endif %}
  421.                                     </h5>
  422.                                     <p class="text-gray-600">
  423.                                         {{ futureBatch.startDate|date('H:i') }} -
  424.                                         {% if futureBatch.endDate %}
  425.                                             {{ futureBatch.endDate|date('H:i') }} Uhr
  426.                                         {% else %}
  427.                                             {{ futureBatch.startDate|date_modify('+2 hours')|date('H:i') }} Uhr
  428.                                         {% endif %}
  429.                                     </p>
  430.                                     {% if futureBatch.name and futureBatch.name != batch.name %}
  431.                                         <p class="text-sm text-gray-400">{{ futureBatch.name }}</p>
  432.                                     {% endif %}
  433.                                 </div>
  434.                                 <div class="flex items-center gap-2">
  435.                                     {% set isBatchOpen = futureBatch.start and futureBatch.end and date(futureBatch.start) <= date() and date(futureBatch.end) >= date() %}
  436.                                     {% if settings.maxNumber > 0 and futureBatch.applicationsCount >= settings.maxNumber %}
  437.                                         <span class="px-3 py-1 bg-red-100 text-red-700 rounded-full text-sm font-medium">Ausgebucht</span>
  438.                                     {% elseif not isBatchOpen %}
  439.                                         <span class="px-3 py-1 bg-gray-100 text-gray-600 rounded-full text-sm font-medium">Anmeldung geschlossen</span>
  440.                                     {% else %}
  441.                                         <span class="px-3 py-1 bg-green-100 text-green-700 rounded-full text-sm font-medium">
  442.                                             {% if settings.maxNumber > 0 %}
  443.                                                 {{ settings.maxNumber - futureBatch.applicationsCount }} Plaetze frei
  444.                                             {% else %}
  445.                                                 Plaetze verfuegbar
  446.                                             {% endif %}
  447.                                         </span>
  448.                                         <span class="text-[color:var(--registration-accent,#9632FF)] font-medium">Zu diesem Termin &#8594;</span>
  449.                                     {% endif %}
  450.                                 </div>
  451.                             </div>
  452.                         </a>
  453.                     {% endif %}
  454.                 {% endfor %}
  455.             </div>
  456.             {% if selectedDate %}
  457.                 <div class="mt-4 text-center">
  458.                     <a href="{{ path('event_show_single', {'slug': event.slug}) }}" class="text-white hover:text-gray-200 underline">
  459.                         &#8592; Alle Termine anzeigen
  460.                     </a>
  461.                 </div>
  462.             {% endif %}
  463.         </div>
  464.     {% endif %}
  465. </section>