{% extends 'base.html.twig' %}{% block body %} {% embed "nav.html.twig" %}{% endembed %} <!-- Page Header Start --> <div class="page-header"> <div class="container"> <div class="row"> <div class="col-12"> <h2>Warenkorb</h2> </div> </div> </div> </div> <!-- Page Header End --> <div class="content" style="text-align:center; padding-top: 3em;" > <div class="contact"> <div class="container"> <div class="col-12 wow fadeInUp" data-wow-delay="0.1s"> <div class="contact-form"> {% if data %} <div class="content" > {% if showSibling == true %} <span>Geschwisterrabatt verwenden</span> <input type="checkbox" class="form-check-input" id="siblingDiscount2" name="siblingDiscount2" onchange="loadCartSiblingDiscount('{{ url }}')" {% if sib == '1' %}checked{% endif %}><br> <label for="siblingDiscount2" class="form-check-label">Achtung! Sollte sich herausstellen, dass die angegebenen Personen keine Geschwister sind, wird die Gebühr nachgefordert</label> <br> {% endif %} {% if showStudio == true %} <span><label for="studioDiscount">Ich bin Studiomitglied</label> <input type="checkbox" id="studioDiscount" name="studioDiscount" style="height: 15px" onchange="loadCartStudioDiscount('{{ url }}')" {% if studio == '1' %}checked{% endif %} ></span> <br> <label for="studioDiscount">Achtung! Sollte sich herausstellen, dass Sie kein Studiomitglied sind, wird die Gebühr nachgefordert</label><br> <br> {% endif %} {% if company == 'KVO' %} <table width="100%" > <tr > <th> </th> <th> </th> <th >Kurs</th> <th >Datum</th> <th >Zeitraum</th> <th >Menge / Personen</th> <th >Preis</th> </tr> {% for elem in data %} <tr> <td> <a href="javascript:removeItem({{ elem.i }}, '{{ url }}')"> <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" fill="red" class="bi bi-x" viewBox="0 0 16 16"> <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/> </svg> </a> </td> <td><img src="{{ url ~ elem.image }}" style="max-width: 100%; height: auto; max-height:100px" /></td> {% if elem.itemMode == '1' %} <td>{{ elem.course }}</td> <td>{{ elem.date|raw }}</td> <td>{{ elem.time }}</td> <td>{{ elem.courseAmount }}</td> <td>{{ elem.coursePrice }}</td> {% endif %} {% if elem.itemMode == '2' %} <td>{{ elem.article }}</td> <td> </td> <td> </td> <td>{{ elem.articleAmount }}</td> <td>{{ elem.articlePrice }}</td> {% endif %} </tr> {% else %} {% endfor %} </table> {% else %} <table width="100%"> <tr > <th> </th> <th >Person</th> <th >Kurs</th> <th >Datum</th> <th >Zeitraum</th> <th >Preis</th> </tr> {% for k,v in data2 %} {% for elem2 in v %} <tr> <td> <a href="javascript:removeItem2({{ elem2.i }}, '{{ url }}', '{{ k }}')"> <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" fill="red" class="bi bi-x" viewBox="0 0 16 16"> <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/> </svg> </a> </td> {% if elem2.itemMode == '1' %} <td>{{ k }}</td> <td>{{ elem2.course }}</td> <td>{{ elem2.date|raw }}</td> <td>{{ elem2.time }}</td> <td>{{ elem2.coursePrice|number_format(2, ',', '.') }} € {% if elem2.discount != 0 %} ({{ elem2.discount }}% Rabatt) {% endif %} </td> {% endif %} {% if elem2.itemMode == '2' %} <td>{{ elem2.article }}</td> <td> </td> <td> </td> <td>{{ elem2.articleAmount }}</td> <td>{{ elem2.articlePrice }}</td> {% endif %} </tr> {% else %} {% endfor %} {% endfor %} </table> {% endif %} <table width="100%"> <tr {% if company != "KVO" %} style="display:none" {% endif %}> <td width="85%" align="right">Preis:</td> <td width="15%">{{fullpricetax }}</td> </tr> {% for key, tax in taxes %} <tr {% if company != "KVO" %} style="display:none" {% endif %}> <td align="right">+{{ key }}% MwSt.</td> <td>{{ tax }} </td> </tr> {% endfor %} {% if adminFee != 0 %} <tr {% if company != "KVO" %} style="display:none" {% endif %}> <td width="85%" align="right">enthaltene Verwaltungsgebühren:</td> <td width="15%">{{ adminFee|number_format(2, ',', '.') }} €</td> </tr> {% endif %} <tr> <td width="85%" align="right">Gesamtpreis:</td> <td width="15%"><u>{{fullprice }}</u></td> </tr> </table> <br> <input type="button" class="btn" value="zur Kasse" onclick="javascript:checkOut('{{url}}');" /> {% if anonBuy == 1 %} <!--<input type="button" class="btn" value="Als Gast Bestellen" onclick="javascript:anonCheckout('{{url}}');" /> --> {% endif %} <input type="button" class="btn" value="weiter Einkaufen" onclick="javascript:location.href='{{ path('homepage2',{placeid: placeid2}) }}'" /> <!-- <input type="button" class="btn btn-success" value="Weiter einkaufen" onclick="javacript:goShopping('{{url}}');" /> --> </div> {% else %} <div class="content" style="text-align:center; " > Ihr Warenkorb ist Leer </div> {% endif %} <input type="hidden" value="{{warning}}" id="warningText" name="warningText"> </div> </div> </div> </div> </div> {% block javascripts %} {{ parent() }} <script src="{{ asset('js/cart.js') }}"></script> {% endblock %} <script> openWarning(); </script>{% endblock %}