templates/nav/user_navigation_warenkorb.html.twig line 1

Open in your IDE?
  1. {#
  2. #}
  3.     {% if buchungen|length > 0 %}
  4.         <div class="fs-6 fw-bold border-bottom pb-1">Offene Buchungen</div>
  5.         <div style="max-height: 30rem;" data-simplebar data-simplebar-auto-hide="false">
  6.             {% for buchung in buchungen %}
  7.                 {% for seminare in buchung.buchungenSeminare %}
  8.                     <div class="widget-cart-item pt-2 pb-2 border-bottom warenkorb-id-{{ buchung.id }}">
  9.                         <a href="{{ path('user_bestellung_loeschen',{id:buchung.id}) }}" class="btn-close btn-lg text-danger link-warenkorb-loeschen"
  10.                            type="button" aria-label="Remove" style="margin-top: -20px">
  11.                             <span aria-hidden="true">&times;</span>
  12.                         </a>
  13.                         <div class="d-flex">
  14.                             <a class="d-block flex-shrink-0" href="{{ path('produkt_details',{id:seminare.termin.schulung.id}) }}{% if seminare.termin.schulung.nurCelsisten == 4 %}?guid={{ seminare.termin.schulung.importFehler }}{% endif %}">
  15.                                 <img src="{{ asset('uploads/schulungen/' ~ seminare.termin.schulung.id ~ '/titelbild/' ~ seminare.termin.schulung.titelbild ) }}"
  16.                                      class="pe-2" width="80">
  17.                             </a>
  18.                             <div class="ps-2">
  19.                                 <h6 class="widget-product-title">
  20.                                     <a href="{{ path('produkt_details',{id:seminare.termin.schulung.id}) }}{% if seminare.termin.schulung.nurCelsisten == 4 %}?guid={{ seminare.termin.schulung.importFehler }}{% endif %}">{{ seminare.termin.schulung.schulungName }}</a>
  21.                                 </h6>
  22.                                 <div class="widget-product-meta">
  23.                                     <span class=""><i class="mdi mdi-account-outline"></i> {{ seminare.anzahlTeilnehmer }}
  24.                                         <span class="blog-entry-meta-divider mx-1"></span>
  25.                                         <span class="fw-bolder me-2">{{ buchung.preisMitMwst|number_format(2, ',', '.') }} € </span> <small>({{ buchung.preis|number_format(2, ',', '.') }} €)</small>
  26.                                     </span>
  27.                                 </div>
  28.                                 <div class="widget-product-meta">
  29.                                         <a class="btn btn-sm btn-outline-secondary mt-2" href="{{ path('user_bestellung',{id:buchung.id}) }}">zur Buchung<i class="ci-arrow-right ms-1 me-n1"></i></a>
  30.                                 </div>
  31.                             </div>
  32.                         </div>
  33.                     </div>
  34.                 {% endfor %}
  35.             {% endfor %}
  36.         </div>
  37.     {% else %}
  38.         <div class="text-center">Warenkorb ist leer</div>
  39.     {% endif %}
  40. {#
  41. {% if buchungen > 0 %}
  42.     <div class="text-center border-top mt-2 pt-4 mb-0 pb-0">
  43.         <a class="btn btn-sm btn-primary"
  44.               href="{{ path ('user_profil_mein_profil_info', {seite:'buchungen'}) }}">
  45.                 <i class="ci-arrow-left me-2"></i>offene Buchungen: {{ buchungen }}
  46.         </a>
  47.     </div>
  48. {% endif %}
  49. #}
  50. <script>
  51.     jQuery(function ($) {
  52.         {% if buchungen|length > 0 %}
  53.         $('.warenkorb-navigation-link').removeClass('d-none');
  54.         $('#warenkorb-navigation-anzahl').text('{{ buchungen|length }}');
  55.         $("#warenkorb-navigation-anzahl").css("visibility", "visible");
  56.         $('.warenkorb-handy-navigation-link').removeClass('d-none');
  57.         $('#warenkorb-handy-navigation-anzahl').text('{{ buchungen|length }}');
  58.         $("#warenkorb-handy-navigation-anzahl").css("visibility", "visible");
  59.         {% else %}
  60.         $('.warenkorb-navigation-link').addClass('d-none');
  61.         $('#warenkorb-navigation-anzahl').text('0');
  62.         $("#warenkorb-navigation-anzahl").css("visibility", "hidden");
  63.         $('.warenkorb-handy-navigation-link').addClass('d-none');
  64.         $('#warenkorb-handy-navigation-anzahl').text('0');
  65.         $("#warenkorb-handy-navigation-anzahl").css("visibility", "hidden");
  66.         {% endif %}
  67.     });
  68. </script>