templates/repair/basket.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Smartphones, Handys & Tablets günstig in CLP beim Doctor reparieren lassen{% endblock %}
  3. {% block body %}
  4.     <section id="banner-small" class="hero is-medium is-success">
  5.         <div class="hero-body container is-fluid" style="margin-top:25px;">
  6.             <div style="z-index:100;">
  7.                 <h1 class="title">
  8.                     Reparaturkorb
  9.                 </h1>
  10.             </div>
  11.         </div>
  12.     </section>
  13.     <div id="main" class="section container">
  14.         <div class="">
  15.             {% if basketSum != 0 %}
  16.                 <div>
  17.                     <h1 class="title is-3">Dein Reparaturkorb</h1>
  18. {#                    <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>#}
  19.                 </div>
  20.                 <table class="table">
  21.                     <thead>
  22.                     <tr>
  23.                         <th>Leistung</th>
  24.                         <th></th>
  25.                         <th>Preis</th>
  26.                     </tr>
  27.                     </thead>
  28.                     <tfoot>
  29.                     <tr>
  30.                         <th></th>
  31.                         <th class="has-text-right">Gesamtsumme:</th>
  32.                         <th class="has-text-right">{{ basketSum|number_format(2, ',', '.') }} €</th>
  33.                     </tr>
  34.                     </tfoot>
  35.                     <tbody>
  36.                     {% for items in basket %}
  37.                         {% for item in items %}
  38.                             {% for position in item %}
  39.                                 <tr>
  40.                                     <td>{{ position.product }}</td>
  41.                                     <th></th>
  42.                                     <td class="has-text-right" >{{ position.price|number_format(2, ',', '.')  }} € <a class="deletePosition ml-3" id="{{ position.id }}"><i class="fa-solid fa-trash"></i></a></td>
  43.                                 </tr>
  44.                             {% endfor %}
  45.                         {% endfor %}
  46.                     {% endfor %}
  47.                     <tr>
  48.                         <td></td>
  49.                         <th class="has-text-right">inkl. 19% USt.:</th>
  50.                         <th class="has-text-right">{{ basketTaxes|number_format(2, ',', '.') }} €</th>
  51.                     </tr>
  52.                     </tbody>
  53.                 </table>
  54.                 <div>
  55.                     <a class="button is-success is-pulled-right" href="{{ path('checkout') }}">Weiter</a>
  56.                 </div>
  57.             {% else %}
  58.                 <div class="has-text-centered">
  59.                     <h2>Dein Reparaturkorb ist leer.</h2>
  60.                     <a class="button is-success" href="{{ path('reparieren') }}">Repariere jetzt dein Gerät!</a>
  61.                 </div>
  62.             {% endif %}
  63.         </div>
  64.     </div>
  65.     {% if basketSum != 0 %}
  66.     <div id="zubehör" class="section container mt-6">
  67.         <div class="columns is-multiline is-mobile">
  68.             {% for accessore in accessories|slice(0, 4) %}
  69.                 <div class="column  box m-3 p-3 has-text-centered">
  70.                     <img src="/images/accessories/{{accessore.description}}"><br>
  71.                     <span class="title is-6">{{accessore.type}}</span>
  72.                     <div class="m-1 mb-4">
  73.                         <span>{{accessore.price}},00 €</span>
  74.                         <span style="font-size:10px;">inkl. 19% MwSt</span>
  75.                     </div>
  76.                     <a class="button is-success addPosition" id="{{accessore.id}}">In den Warenkorb</a>
  77.                 </div>
  78.             {% endfor %}
  79.         </div>
  80.     </div>
  81.     {% endif %}
  82. {% endblock %}