src/StartPlatz/Bundle/EventBundle/Resources/views/Default/_registration.batch.winter-2025.html.twig line 1

Open in your IDE?
  1. {% import "@StartPlatzEventBundle/Default/_macros.registration.html.twig" as registration %}
  2. <section id="{% if lang == 'en' or isEnglish %}registration{% else %}anmeldung{% endif %}" class="bg-registration py-5">
  3. <div class="row">
  4.     <div class="col-12">
  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.         {# Compact Event Details (Horizontal Layout) - Same width as form #}
  22.         <div class="row d-flex justify-content-center">
  23.             <div class="col-md-8">
  24.                 {% if event is defined %}
  25.                     <div class="d-flex justify-content-between mb-4 bg-light p-3" style="border-radius: 8px;">
  26.                         {# When - INLINE like V2 #}
  27.                         <div>
  28.                             <strong>📅 {% if lang == 'DE' %}Wann:{% else %}When:{% endif %}</strong>
  29.                             {% if isMultiBatchEvent and batch and batch.startDate %}
  30.                                 {{ batch.startDate|date('d.m.Y H:i') }}{% if batch.endDate %} - {{ batch.endDate|date('H:i') }} Uhr{% endif %}
  31.                             {% else %}
  32.                                 {{ registration.when(event, lang, phrases) }}
  33.                             {% endif %}
  34.                         </div>
  35.                         {# Where - INLINE like V2 #}
  36.                         <div>
  37.                             <strong>📍 {% if lang == 'DE' %}Wo:{% else %}Where:{% endif %}</strong> {{ registration.where(event, lang, phrases) }}
  38.                         </div>
  39.                         {# Fee - INLINE like V2 #}
  40.                         <div>
  41.                             {% if displayPrice %}
  42.                                 <strong>💰 {% if lang == 'DE' %}Gebühr:{% else %}Fee:{% endif %}</strong> {{ (displayPrice/100)|number_format(2, ',', '.') }} € {% if isTaxIncluded %}{% if lang == 'DE' %}inkl. MwSt.{% else %}incl. VAT{% endif %}{% else %}{% if lang == 'DE' %}zzgl. MwSt.{% else %}excl. VAT{% endif %}{% endif %}
  43.                             {% elseif displayPrice is not null and displayPrice == 0 %}
  44.                                 <strong>💰 {% if lang == 'DE' %}Gebühr:{% else %}Fee:{% endif %}</strong> {% if lang == 'DE' %}kostenlos{% else %}free{% endif %}
  45.                             {% endif %}
  46.                         </div>
  47.                     </div>
  48.                     {# KI Campus Free Access Box #}
  49.                     {% if displayPrice and isFreeForKiCampus %}
  50.                         <div class="mb-3 p-3 bg-light border rounded" style="border-radius: 8px;">
  51.                             <span class="text-success">
  52.                                 <i class="fas fa-check-circle"></i>
  53.                                 {% if lang == 'DE' %}
  54.                                     Kostenlos für KI Campus Mitglieder
  55.                                 {% else %}
  56.                                     Free for KI Campus members
  57.                                 {% endif %}
  58.                             </span>
  59.                             <p class="mb-1 mt-2 small">
  60.                                 {% if lang == 'DE' %}
  61.                                     Werde Mitglied für nur 49€/Monat und erhalte Zugang zu diesem und vielen weiteren kostenlosen KI-Kursen und Events!
  62.                                 {% else %}
  63.                                     Join now for just €49/month and get access to this and many other free AI courses and events!
  64.                                 {% endif %}
  65.                             </p>
  66.                             <a target="_blank" href="https://ki-campus.onepage.me/" class="btn btn-sm btn-success mt-2">
  67.                                 {% if lang == 'DE' %}
  68.                                     Jetzt KI Campus Mitglied werden
  69.                                 {% else %}
  70.                                     Become a KI Campus member now
  71.                                 {% endif %}
  72.                             </a>
  73.                         </div>
  74.                     {% endif %}
  75.                     {# Community Free Access Box #}
  76.                     {% if displayPrice and isFreeForCommunity %}
  77.                         <div class="mb-3 p-3 bg-light border rounded" style="border-radius: 8px;">
  78.                             <span class="text-success">
  79.                                 <i class="fas fa-check-circle"></i>
  80.                                 {% if lang == 'DE' %}
  81.                                     Kostenlos für Community Mitglieder
  82.                                 {% else %}
  83.                                     Free for Community members
  84.                                 {% endif %}
  85.                             </span>
  86.                             <p class="mb-1 mt-2 small">
  87.                                 {% if lang == 'DE' %}
  88.                                     Als Community Mitglied erhältst Du kostenlosen Zugang zu diesem Event!
  89.                                 {% else %}
  90.                                     As a Community member, you get free access to this event!
  91.                                 {% endif %}
  92.                             </p>
  93.                         </div>
  94.                     {% endif %}
  95.                     {# Application Status #}
  96.                     {% if application.applicationStatus is defined and application.applicationStatus is not empty %}
  97.                         <div class="alert alert-info" style="border-radius: 8px;">
  98.                             <strong>{{ phrases.event_phrase_application_status|default('Anmeldestatus:') }}</strong>
  99.                             <div class="mt-1">
  100.                                 {% if application.applicationStatus == 'started' %}
  101.                                     {{ phrases.event_phrase_status_started|default('Du bist vorgemerkt. Sobald Du Deine E-Mail Adresse bestätigt hast, wird die Anmeldung gültig.') }}
  102.                                 {% elseif application.applicationStatus == 'applied' %}
  103.                                     {% if event is defined and event and event.isFormalLanguage %}
  104.                                         {{ phrases.event_phrase_status_applied_formal|default('Sie sind angemeldet. Wir freuen uns auf Sie!') }}
  105.                                     {% else %}
  106.                                         {{ phrases.event_phrase_status_applied|default('Du bist angemeldet. Wir freuen uns auf Dich!') }}
  107.                                     {% endif %}
  108.                                 {% else %}
  109.                                     {{ phrases.event_phrase_status_other|default('Du bist angemeldet mit dem Status ==') }} {{ application.applicationStatus }}
  110.                                 {% endif %}
  111.                             </div>
  112.                         </div>
  113.                     {% endif %}
  114.                 {% endif %}
  115.             </div>
  116.         </div>
  117.         {# TICKET AVAILABILITY COUNTER - Configurable via settings #}
  118.         {% if settings.showParticipantCounter|default(false) %}
  119.             {% set maxParticipants = settings.maxNumber|default(100) %}
  120.             {% set countedStatuses = settings.countStatus|default(['applied', 'approved']) %}
  121.             {# Calculate count based on configured statuses #}
  122.             {% set registered = 0 %}
  123.             {% if 'started' in countedStatuses and batch.startedCount is not null %}
  124.                 {% set registered = registered + batch.startedCount %}
  125.             {% endif %}
  126.             {% if 'applied' in countedStatuses and batch.appliedCount is not null %}
  127.                 {% set registered = registered + batch.appliedCount %}
  128.             {% endif %}
  129.             {% if 'approved' in countedStatuses and batch.approvedCount is not null %}
  130.                 {% set registered = registered + batch.approvedCount %}
  131.             {% endif %}
  132.             {% if 'rejected' in countedStatuses and batch.rejectedCount is not null %}
  133.                 {% set registered = registered + batch.rejectedCount %}
  134.             {% endif %}
  135.             {% set available = maxParticipants - registered %}
  136.             <div class="row d-flex justify-content-center mt-4">
  137.                 <div class="col-md-8">
  138.                     <div class="alert bg-light border mb-3" style="background-color: #f8f9fa !important; padding: 12px 20px; border-radius: 6px;">
  139.                         <div class="text-center" style="font-size: 14px; color: #666;">
  140.                             {% if lang == 'de' %}
  141.                                 <strong>{{ registered }} von {{ maxParticipants }} Plätzen belegt</strong> |
  142.                                 <strong style="color: #FF6B00;">{{ available }} übrig</strong> – sichere dir deinen Platz
  143.                             {% else %}
  144.                                 <strong>{{ registered }} of {{ maxParticipants }} seats taken</strong> |
  145.                                 <strong style="color: #FF6B00;">{{ available }} left</strong> – don't miss your spot
  146.                             {% endif %}
  147.                         </div>
  148.                     </div>
  149.                 </div>
  150.             </div>
  151.         {% endif %}
  152.         {# END TICKET AVAILABILITY COUNTER #}
  153.         {# Registration Form - Centered 66% width - INTEGRATED (no more include!) #}
  154.         {% if application.applicationStatus is defined and application.applicationStatus is empty %}
  155.             <div class="row d-flex justify-content-center">
  156.                 <div class="col-md-8">
  157.                     {# Waiting List or Regular Registration #}
  158.                     {% if settings.maxNumber > 0 and batch.applicationsCount >= settings.maxNumber %}
  159.                         {% if settings.hasWaitingList %}
  160.                             <h2 class="text-center mb-4">{{ phrases.event_phrase_all_seats_booked_waiting_list|default('Alle Plätze sind gebucht - Bitte registriere Dich für die Warteliste') }}</h2>
  161.                         {% else %}
  162.                             <h2 class="text-center mb-4">{{ phrases.event_phrase_all_seats_booked_no_registration|default('Alle Plätze sind gebucht - Eine Anmeldung ist leider nicht möglich') }}</h2>
  163.                         {% endif %}
  164.                     {% endif %}
  165.                     {# Show form if not full OR has waiting list #}
  166.                     {% if (settings.maxNumber == 0 or batch.applicationsCount < settings.maxNumber) or (settings.maxNumber > 0 and batch.applicationsCount >= settings.maxNumber and settings.hasWaitingList) %}
  167.                         {# Flash Messages #}
  168.                         {% for flashMessage in app.session.flashbag.get('notice') %}
  169.                             <div class="alert {% if 'SUCCESS' in flashMessage %}alert-success{% elseif 'ERROR' in flashMessage  %}alert-danger{% else %}alert-default{% endif %}" role="alert">{{ flashMessage|raw }}</div>
  170.                         {% endfor %}
  171.                         {# Form Container with V2 Styling #}
  172.                         <div class="bg-light p-4 contact-form" style="border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08);">
  173.                             {{ form_start(form) }}
  174.                             {{ form_errors(form) }}
  175.                             {# Name Fields (Side by Side) #}
  176.                             <div class="form-group row">
  177.                                 <div class="col-md-6 mb-3 mb-md-0">
  178.                                     {{ form_widget(form.firstName, {'attr': {'class': 'form-control', size: "32", max_size: "64",placeholder: phrases.phrase_form_firstName_placeholder ~ ' (*)'} } ) }}
  179.                                 </div>
  180.                                 <div class="col-md-6">
  181.                                     {{ form_widget(form.lastName, {'attr': {'class': 'form-control', size: "32", max_size: "64",placeholder: phrases.phrase_form_lastName_placeholder ~  ' (*)'} }  ) }}
  182.                                 </div>
  183.                             </div>
  184.                             {# Startup Name (Optional) #}
  185.                             {% if batch.askForTeam %}
  186.                                 <div class="form-group">
  187.                                     {{ form_widget(form.startupName, {'attr': {'class': 'form-control',placeholder: 'Firma'}, 'required':false } ) }}
  188.                                 </div>
  189.                             {% endif %}
  190.                             {# Email #}
  191.                             <div class="form-group">
  192.                                 {{ form_widget(form.email, {'attr': {'class': 'form-control', size: "32", max_size: "64", placeholder: 'E-mail (*)'  } }  ) }}
  193.                             </div>
  194.                             {# Phone #}
  195.                             {% if batch.hasIncludePhone %}
  196.                                 <div class="form-group">
  197.                                     {{ form_widget(form.phone, {'attr': {'class': 'form-control', size: "32", max_size: "64"}, 'required':false, placeholder: 'Phone Number'  } ) }}
  198.                                     <small class="form-text text-muted">
  199.                                         {{ phrases.request_phone_number_for_updates | default('Bitte gib\' Deine Telefonnummer an, damit wir Dich im Fall von Änderungen erreichen können.') }}
  200.                                     </small>
  201.                                 </div>
  202.                             {% endif %}
  203.                             {# LinkedIn #}
  204.                             {% if batch.hasIncludeLinkedIn %}
  205.                                 <div class="form-group">
  206.                                     {{ form_widget(form.linkedin, {'attr': {'class': 'form-control'}, 'required':false } ) }}
  207.                                 </div>
  208.                             {% endif %}
  209.                             {# Extra Fields (Dynamic) #}
  210.                             {% if attribute(settings, 'extraFields') is defined %}
  211.                                 {% set extraFields = attribute(settings, 'extraFields') %}
  212.                                 {% for extraField in extraFields %}
  213.                                     {% set formField = attribute(form, extraField.field) %}
  214.                                     {% if extraField.type == 'checkbox' %}
  215.                                         <div class="form-group">
  216.                                             <div class="d-flex align-items-start">
  217.                                                 <div class="mr-2">
  218.                                                     {{ form_widget(formField, {'attr': {'class': 'form-check-input'}, 'required':extraField.required } ) }}
  219.                                                 </div>
  220.                                                 <div>
  221.                                                     <strong class="form-text text-muted">
  222.                                                         {{ extraField.label }}
  223.                                                     </strong>
  224.                                                 </div>
  225.                                             </div>
  226.                                         </div>
  227.                                     {% else %}
  228.                                         <div class="form-group">
  229.                                             {{ form_widget(formField, {'attr': {'class': 'form-control'}, 'required':extraField.required } ) }}
  230.                                         </div>
  231.                                     {% endif %}
  232.                                 {% endfor %}
  233.                             {% endif %}
  234.                             {# Applicant Types #}
  235.                             {% if settings.applicantTypes is defined and settings.applicantTypes %}
  236.                                 <div class="form-group">
  237.                                     {{ form_widget(form.applicantType, {'attr': {'class': 'form-control'}, 'required':false } ) }}
  238.                                 </div>
  239.                             {% endif %}
  240.                             {# Newsletter Permission #}
  241.                             {% if batch.hasIncludeNewsletterPermission %}
  242.                                 <div class="form-group">
  243.                                     <div class="d-flex align-items-start">
  244.                                         <div class="mr-2">
  245.                                             {{ form_widget(form.hasNewsletterPermissionGiven, {'attr': {'class': 'form-check-input'}, 'required':false } ) }}
  246.                                         </div>
  247.                                         <div>
  248.                                             <strong class="form-text text-muted">
  249.                                                 {% if application.lang == 'DE' %}
  250.                                                 Ja, ich möchte gerne über weitere Veranstaltungen informiert werden.
  251.                                                 {% else %}
  252.                                                 Yes, I would like to be informed about further events.
  253.                                                 {% endif %}
  254.                                             </strong>
  255.                                         </div>
  256.                                     </div>
  257.                                 </div>
  258.                             {% endif %}
  259.                             {# Volunteer Consent #}
  260.                             {% if settings.hasIncludeVolunteerConsent is defined and settings.hasIncludeVolunteerConsent %}
  261.                                 <div class="form-group">
  262.                                     <div class="d-flex align-items-start">
  263.                                         <div class="mr-2">
  264.                                             {{ form_widget(form.hasVolunteerAgreed, {'attr': {'class': 'form-check-input'}, 'required':false } ) }}
  265.                                         </div>
  266.                                         <div>
  267.                                             <strong class="form-text text-muted">
  268.                                                 {% if application.lang == 'DE' %}
  269.                                                 Ja, ich würde mich gerne als Volunteer, Mentor oder Unterstützer einbringen
  270.                                                 {% else %}
  271.                                                     Yes, I would like to contribute as a volunteer, mentor, or supporter
  272.                                                     {% endif %}
  273.                                             </strong>
  274.                                         </div>
  275.                                     </div>
  276.                                 </div>
  277.                             {% endif %}
  278.                             {# Terms Consent #}
  279.                             {% if batch.hasIncludeTermsConsent %}
  280.                                 <div class="form-group">
  281.                                     <small class="form-text text-muted">
  282.                                         {% if application.lang == 'DE' %}
  283.                                         Bei unseren Veranstaltungen können Aufnahmen für Social Media gemacht werden.
  284.                                         <br>Mit Deiner Anmeldung stimmst Du zu, dass Bildaufnahmen für Social Media verwendet werden dürfen.
  285.                                         {% else %}
  286.                                         At our events, recordings for social media can be made.  <br>By registering, you agree that image recordings may be used for social media.
  287.                                         {% endif %}
  288.                                     </small>
  289.                                 </div>
  290.                             {% endif %}
  291.                             {# AI Hub Trial Membership Note #}
  292.                             {% if batch.productId > 322 and batch.productId < 330 %}
  293.                                 <div class="form-group">
  294.                                     <small class="form-text text-muted">
  295.                                         (*) die Probemitgliedschaft im AI Hub verlängert sich nicht automatisch und wird 30 Tage nach Ende der ausgewählten AI-Summer-School-Ausgabe automatisch und ohne zusätzliche Kosten gekündigt.
  296.                                     </small>
  297.                                 </div>
  298.                             {% endif %}
  299.                             {# Price Information #}
  300.                             {% if batch.priceInEuroCent %}
  301.                                 <div class="form-group">
  302.                                     {% if application.lang == 'DE' %}
  303.                                         <strong>Der Standardpreis beträgt {{ application.priceInEuroCent /100 |number_format(0, ',', '.') }}€</strong> (zzgl. MwSt.)
  304.                                         {% if application.discountPercent %}
  305.                                             <br>
  306.                                             Du erhälst einen Discount wegen <i>{{ application.discountReason }}</i> in Höhe von {{ application.discountPercent }}%
  307.                                             und daher beträgt der Preis für Dich {{ application.realPriceinEuroCent /100 |number_format(0, ',', '.') }}€ (zzgl. MwSt.)
  308.                                         {% endif %}
  309.                                         <br>
  310.                                         {% if application.realPriceinEuroCent %}
  311.                                             <small class="text-muted">Mit Klick auf "Jetzt anmelden" wirst Du angemeldet und ein Zahlungsvorgang bei unserem Dienstleister Monsum gestartet </small>
  312.                                         {% endif %}
  313.                                     {% else %}
  314.                                         <strong>The standard price is {{ application.priceInEuroCent /100 |number_format(0, ',', '.') }}€</strong>
  315.                                         {% if application.discountPercent %}
  316.                                             <br>
  317.                                             You will receive a discount due to <i>{{ application.discountReason }}</i> in the amount of {{ application.discountPercent }}%
  318.                                             and therefore the price for you is {{ application.realPriceinEuroCent /100 |number_format(0, ',', '.') }}€
  319.                                         {% endif %}
  320.                                         <br>
  321.                                         {% if application.realPriceinEuroCent %}
  322.                                             <small class="text-muted">By clicking "Register Now" you will be registered and a payment process will be started with our service provider Monsum</small>
  323.                                         {% endif %}
  324.                                     {% endif %}
  325.                                 </div>
  326.                             {% endif %}
  327.                             {# Submit Button - Centered & Large (V2 Style) #}
  328.                             {% set label = phrases.phrase_form_button_call_to_act %}
  329.                             <div class="form-group text-center mt-4">
  330.                                 {{ form_widget(form.finish, {'attr': {'class': 'btn btn-dark btn-lg px-5 py-3', 'style': 'border-radius: 8px;'}, 'label':label }) }}
  331.                             </div>
  332.                             {# CSRF Token #}
  333.                             {% if not embed|default(false) %}
  334.                                 {{ form_row(form._token) }}
  335.                             {% endif %}
  336.                             {{ form_end(form, {'render_rest': false}) }}
  337.                             {# Meta Pixel Lead Event - Hybrid Approach #}
  338.                             {% if event is defined and event.slug == 'ai-coding-hackathon-2025' %}
  339.                                 <script>
  340.                                     (function() {
  341.                                         // Find the form element
  342.                                         var form = document.querySelector('form[name="{{ form.vars.name }}"]');
  343.                                         if (!form) return;
  344.                                         var isSubmitting = false;
  345.                                         // Intercept form submission
  346.                                         form.addEventListener('submit', function(e) {
  347.                                             // If we've already fired the pixel and are submitting, let it through
  348.                                             if (isSubmitting) {
  349.                                                 return true;
  350.                                             }
  351.                                             // Prevent default form submission
  352.                                             e.preventDefault();
  353.                                             e.stopPropagation();
  354.                                             // Fire Meta Pixel Lead event with Hybrid approach
  355.                                             if (typeof fbq !== 'undefined') {
  356.                                                 var submitted = false;
  357.                                                 function submitForm() {
  358.                                                     if (submitted) return;
  359.                                                     submitted = true;
  360.                                                     isSubmitting = true;
  361.                                                     form.submit();
  362.                                                 }
  363.                                                 // Try callback (best case - fires when event confirmed)
  364.                                                 fbq('track', 'Lead', {}, function() {
  365.                                                     console.log('✅ Meta Pixel Lead confirmed');
  366.                                                     submitForm();
  367.                                                 });
  368.                                                 // Fallback timeout (safety net - fires after 1s max)
  369.                                                 setTimeout(function() {
  370.                                                     console.log('⏱️ Meta Pixel fallback timeout');
  371.                                                     submitForm();
  372.                                                 }, 1000);
  373.                                             } else {
  374.                                                 // If fbq is not loaded, submit immediately
  375.                                                 isSubmitting = true;
  376.                                                 form.submit();
  377.                                             }
  378.                                             return false;
  379.                                         });
  380.                                     })();
  381.                                 </script>
  382.                             {% endif %}
  383.                             {# Reduced Tickets Info #}
  384.                             {% if batch.priceInEuroCent and attribute(phrases,'phrase_reduced_tickets') is defined %}
  385.                                 <div class="form-group">
  386.                                     <p class="text-muted">{{ phrases.phrase_reduced_tickets }}</p>
  387.                                 </div>
  388.                             {% endif %}
  389.                         </div> {# End form container #}
  390.                     {% endif %} {# End form visibility check #}
  391.                 </div>
  392.             </div>
  393.         {% endif %}
  394.     </div>
  395. </div>
  396. {# Multi-Batch: Other Dates Section #}
  397. {% if isMultiBatchEvent and futureBatches|length > 1 %}
  398. <div class="row mt-5" id="{{ isEnglish ? 'OtherDates' : 'WeitereTermine' }}">
  399.     <div class="col-12">
  400.         <h3 class="text-center mb-4">{{ phrases.event_phrase_other_dates|default('Weitere Termine') }}</h3>
  401.         <div class="batch-selector">
  402.             <div class="list-group">
  403.                 {% for futureBatch in futureBatches %}
  404.                     {% if futureBatch.id != batch.id %} {# Don't show the currently selected batch #}
  405.                         <a href="{{ path('event_show_single_by_date', {'slug': event.slug, 'date': futureBatch.startDate|date('Y-m-d')}) }}"
  406.                            class="list-group-item list-group-item-action">
  407.                             <div class="row align-items-center">
  408.                                 <div class="col-md-6">
  409.                                     <h5 class="mb-1">
  410.                                         {% if lang == 'DE' %}
  411.                                             {{ futureBatch.startDate|date('d. F Y', 'Europe/Berlin')|replace({
  412.                                                 'January': 'Januar', 'February': 'Februar', 'March': 'März',
  413.                                                 'April': 'April', 'May': 'Mai', 'June': 'Juni',
  414.                                                 'July': 'Juli', 'August': 'August', 'September': 'September',
  415.                                                 'October': 'Oktober', 'November': 'November', 'December': 'Dezember'
  416.                                             }) }}
  417.                                         {% else %}
  418.                                             {{ futureBatch.startDate|date('F d, Y') }}
  419.                                         {% endif %}
  420.                                     </h5>
  421.                                     <p class="mb-1">
  422.                                         {{ futureBatch.startDate|date('H:i') }} -
  423.                                         {% if futureBatch.endDate %}
  424.                                             {{ futureBatch.endDate|date('H:i') }} Uhr
  425.                                         {% else %}
  426.                                             {{ futureBatch.startDate|date_modify('+2 hours')|date('H:i') }} Uhr
  427.                                         {% endif %}
  428.                                     </p>
  429.                                     {% if futureBatch.name and futureBatch.name != batch.name %}
  430.                                         <small class="text-muted">{{ futureBatch.name }}</small>
  431.                                     {% endif %}
  432.                                 </div>
  433.                                 <div class="col-md-6 text-md-right">
  434.                                     {% set isBatchOpen = futureBatch.start and futureBatch.end and date(futureBatch.start) <= date() and date(futureBatch.end) >= date() %}
  435.                                     {% if settings.maxNumber > 0 and futureBatch.applicationsCount >= settings.maxNumber %}
  436.                                         <span class="badge badge-danger">Ausgebucht</span>
  437.                                     {% elseif not isBatchOpen %}
  438.                                         <span class="badge badge-secondary">Anmeldung geschlossen</span>
  439.                                     {% else %}
  440.                                         <span class="badge badge-success">
  441.                                             {% if settings.maxNumber > 0 %}
  442.                                                 {{ settings.maxNumber - futureBatch.applicationsCount }} Plätze frei
  443.                                             {% else %}
  444.                                                 Plätze verfügbar
  445.                                             {% endif %}
  446.                                         </span>
  447.                                         <button class="btn btn-sm btn-outline-primary ml-2">
  448.                                             Zu diesem Termin →
  449.                                         </button>
  450.                                     {% endif %}
  451.                                 </div>
  452.                             </div>
  453.                         </a>
  454.                     {% endif %}
  455.                 {% endfor %}
  456.             </div>
  457.         </div>
  458.         {% if selectedDate %}
  459.             <div class="mt-3 text-center">
  460.                 <a href="{{ path('event_show_single', {'slug': event.slug}) }}" class="btn btn-link">
  461.                     ← Alle Termine anzeigen
  462.                 </a>
  463.             </div>
  464.         {% endif %}
  465.     </div>
  466. </div>
  467. {% endif %}
  468. </section>