Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.traiteur-75.fr_1689065491
/
htdocs
/
templates
/
front
/
cart
/
/srv/data/trash/vhost_www.traiteur-75.fr_1689065491/htdocs/templates/front/cart/read.html.twig
{% extends 'front/layout.html.twig' %} {% block title %} Panier {% endblock %} {% block description %}{% endblock %} {% block content %} <div class="container mt-5"> <section> <div class="text-center"> <h1 class="windSong" style="font-size:70px;">Panier</h1> <div class="row align-items-center"> <img src={{asset('build/images/divider-motif.png')}} alt="" class="img-fluid"> </div> </div> </section> <section class="section-padding"> <div class="row"> <div class="col-md-8"> <table class="table table-cart"> <thead> <tr> <th scope="col"></th> <th scope="col"></th> <th scope="col">PRODUIT(S)</th> <th scope="col">QUANTITE</th> <th scope="col">PRIX</th> <th scope="col">TOTAL</th> <th></th> </tr> </thead> <tbody> {% for product in products %} <tr> <th> <a href="{{path('front_product_read', {'slug' : product.object.slug, 'id' : product.object.id})}}"> <img src="{{ vich_uploader_asset(product.object, 'imageFile') }}" alt="" class="img-fluid"> </a> </th> <td> {% if product.object.isDelivery %}<img src="{{asset('build/images/isDelivery.png')}}" alt="logo produit livrable" class="w-50"> {% endif %} </td> <td> <a href="{{path('front_product_read', {'slug' : product.object.slug, 'id' : product.object.id})}}" class="text-decoration-none text-dark"> {{product.object.name}} </a> </td> <td> <div class="cartQuantity"> <a href="{{path('front_cart_down', {'id' : product.object.id})}}" class="text-decoration-none text-dark"> {% if product.qtt > 1 %} <i class="fa-solid fa-minus"></i> {% else %} <i class="fa-solid fa-trash-can"></i> {% endif %} </a> {{product.qtt}} <a href="{{path('front_cart_up', {'id' : product.object.id})}}" class="text-decoration-none text-dark"> <i class="fa-solid fa-plus"></i> </a> </div> </td> <td class="primaryColor">{{product.object.price}}€</td> {% set total = product.qtt * product.object.price %} <td>{{total}}€</td> <td> <a href="{{path('front_cart_delete', {'id' : product.object.id})}}" class="text-decoration-none"> <i class="fa-solid fa-xmark primaryColor"></i> </a> </td> </tr> {% else %} <tr> <td class="text-center primaryColor" colspan="7">Aucun produit dans le panier ...</td> </tr> {% endfor %} </tbody> </table> </div> <div class="col-md-4"> <div class="card card-cart-resume "> <p class="text-center fs-5 fw-bold">Récapitulatif de la commande</p> <p class="text-center">Nombre d'articles : {{products|length}}</p> <br> <div class="row align-items-center justify-content-center"> <div class="col-6"> <p class="text-center text-muted">TVA incluse :</p> <p class="text-center">TOTAL :</p> </div> <div class="col-6"> <p class="text-center text-muted">{{CartService.getVat()}}€</p> <p class="text-center">{{CartService.getTotal()}}€</p> </div> </div> </div> {% if products|length > 0 %} <div class="text-center mt-3"> <a class="btn btn-lg btn-primary-dark " href="{{path("front_command_information")}}"> <i class="fas fa-shopping-cart"></i> Procéder à l'achat </a> </div> {% endif %} </div> </div> </section> </div> {% endblock %}