{% extends 'baseTemplate_2.html.twig' %}
{% import 'presentation/macroHead.html.twig' as traiteinfoHead %}
{% block title %}Votre panier{% endblock %}
{% block body %}
<div class="full-width-header header-style1 home1-modifiy">
<!--Header Start-->
{{ traiteinfoHead.infoHead(typeSite,objetAbonne,listeMenu,"#000") }}
<!--Header End-->
</div>
<!--Full width header End-->
<div class="main-content">
<div class="rs-breadcrumbs breadcrumbs-overlay">
<div class="breadcrumbs-img">
<br/><br/><br/><br/><br/>
</div>
<div class="breadcrumbs-text white-color">
<h1 class="page-title">{{'site.panier'|trans}}</h1>
<ul>
<li>
<a class="active" href="#">Accueil</a>
</li>
<li>{{'site.panier'|trans}}</li>
</ul>
</div>
</div>
<!-- Intro Courses -->
<section class="intro-section pt-94 pb-100 md-pt-64 md-pb-70">
<div class="rs-cart orange-color pt-100 pb-100 md-pt-70 md-pb-70">
<div class="container">
<div class="cart-wrap">
<form>
<table class="cart-table">
<thead>
<tr>
<th class="product-remove">Action</th>
<th class="product-thumbnail"></th>
<th class="product-name">{{'site.produit'|trans}} </th>
<th class="product-price">{{'site.prod.prix'|trans}} </th>
<th class="product-quantity">{{'site.Qte'|trans}}</th>
<th class="product-subtotal">Total</th>
</tr>
</thead>
<tbody>
{% for element in dataPanier %}
{% if element.produit|length != 0 %}
<tr>
<td >
<a href="#"><i class="fa fa-close"></i></a>
<a href="{{path("cart_add", {id: element.produit.id})}}" class="btn btn-success">
<i class="fa fa-cart-plus"></i>
</a>
<a href="{{path("cart_remove", {id: element.produit.id})}}" class="btn btn-warning">
<i class="fa fa-cart-dash"></i>
</a>
<a href="{{path("cart_delete", {id: element.produit.id})}}" class="btn btn-danger">
<i class="fa fa-cart-x"></i>
</a>
</td>
<td class="product-thumbnail"><a href="#"><img src="assets/images/shop/4.jpg" alt=""></a></td>
<td class="product-name"><a href="#">{{ element.produit.nomProduit }}</a></td>
<td class="product-price"><span></span>{{ element.prix }}{#{element.produit.price }#}</td>
<td class="product-quantity"><input type="text" class="input-text" value="{{ element.quantite }}" pattern="[0-9]*"></td>
<td class="subtotal"><span class="amount"><span class="symbol"></span>{{ element.quantite * element.prix }}</span></td>
</tr>
{% endif %}
{% else %}
<tr>
<td colspan="6" class="text-center"> {{'site.vide.panier'|trans}} </td>
</tr>
{% endfor %}
<tr>
<td colspan="6" class="action text-right">
<div class="coupon">
<input type="text" name="text" placeholder="Coupon code" required="">
<button type="submit" class="btn-shop apply-btn orange-color"> {{'site.apply.coupon'|trans}}</button>
</div>
<div class="update-cart">
<button class="btn-shop orange-color">{{'site.mettre.ajout.parnier'|trans}} </button>
</div>
</td>
</tr>
</tbody>
</table>
</form>
<div class="cart-collaterals pt-70 md-pt-50">
<div class="cart-totals">
<h5 class="title mb-25">{{'site.detail'|trans}} {{'site.panier'|trans}}</h5>
<table class="cart-total-table">
<tbody>
<tr class="cart-subtotal">
<th>Subtotal</th>
<td><span class="amount"><span></span>{{ total}}</span></td>
</tr>
<tr class="order-total">
<th>Total</th>
<td><strong><span class="amount"><span></span>{{ total}}</span></strong></td>
</tr>
</tbody>
</table>
<div class="wc-proceed-to-checkout">
<button class="btn-shop orange-color" data-toggle="modal" data-target=".bd-example-modal-lg"> {{'site.proceed.checkout'|trans}} </button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End intro Courses -->
</div>
<div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">{{'site.checking'|trans}}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-lg-7">
<form>
<div class="form-group">
<label for="exampleInputEmail1"> {{'site.nom.prenom'|trans}} </label>
<input type="text" class="form-control nomPrenoms" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="">
</div>
<div class="form-group">
<label for="exampleInputPassword1"> {{'site.telephone'|trans}} </label>
<input type="text" class="form-control tel" id="exampleInputPassword1" placeholder="">
</div>
<div class="form-group">
<label for="exampleInputPassword1"> Email</label>
<input type="email" class="form-control email" id="exampleInputPassword1" placeholder="">
</div>
<div class="form-group">
<label for="exampleInputPassword1">{{'site.adresse'|trans}} </label>
<input type="text" class="form-control adresse" id="exampleInputPassword1" placeholder="">
</div>
<div class="form-check">
<label class="form-check-label" for="exampleCheck1"> {{'site.menu.certification'|trans}} </label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Global Gap</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Biologique</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Autres</label>
</div>
</form>
</div>
<div class="col-lg-5">
<table class="cart-table" style="width : 100%">
<thead>
<tr>
<th class="product-name">{{'site.produit'|trans}} </th>
<th class="product-price">{{'site.prod.prix'|trans}}</th>
<th class="product-quantity">Qte</th>
<th class="product-subtotal">Total</th>
</tr>
</thead>
<tbody>
{% for element in dataPanier %}
{% if element.produit|length != 0 %}
<tr>
<td class="product-name"><a href="#">{{ element.produit.nomProduit }}</a></td>
<td class="product-price"><span></span>{{ element.prix }} {#{element.produit.price }#}</td>
<td class="product-quantity">{{ element.quantite }}</td>
<td class="subtotal"><span class="amount"><span class="symbol"></span>{{ element.quantite * element.prix }}</span></td>
</tr>
{% endif %}
{% else %}
<tr>
<td colspan="6" class="text-center">{{'site.vide.panier'|trans}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<div class="modal-footer">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">{{'site.communique.whatsapp'|trans}} </label>
</div>
<button type="button" class="btn btn-secondary" data-dismiss="modal"> {{'site.fermer'|trans}}</button>
<button type="button" class="btn btn-primary btValiderOrder">{{'site.valider'|trans}} </button>
</div>
</div>
</div>
</div>
</div>
{% endblock %}