{% extends 'base.html.twig' %}
{% block title %}Les trésors de Luna - Contact{% endblock %}
{% block javascripts %}
<script type="module" src="{{asset('js/buying.js')}}"></script>
<script type="module" src="{{asset('js/classes/Cart.js')}}"></script>
<script type="module" src="{{asset('js/payment.js')}}"></script>
<script type="module" src="{{asset('js/classes/PaymentDataManager.js')}}"></script>
{% endblock javascripts %}
{% block body %}
<body>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<defs>
<symbol xmlns="http://www.w3.org/2000/svg" id="link" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 19a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm5 0a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm0-4a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm-5 0a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm7-12h-1V2a1 1 0 0 0-2 0v1H8V2a1 1 0 0 0-2 0v1H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3Zm1 17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9h16Zm0-11H4V6a1 1 0 0 1 1-1h1v1a1 1 0 0 0 2 0V5h8v1a1 1 0 0 0 2 0V5h1a1 1 0 0 1 1 1ZM7 15a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm0 4a1 1 0 1 0-1-1a1 1 0 0 0 1 1Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="arrow-right" viewBox="0 0 24 24">
<path fill="currentColor"
d="M17.92 11.62a1 1 0 0 0-.21-.33l-5-5a1 1 0 0 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l5-5a1 1 0 0 0 .21-.33a1 1 0 0 0 0-.76Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="category" viewBox="0 0 24 24">
<path fill="currentColor"
d="M19 5.5h-6.28l-.32-1a3 3 0 0 0-2.84-2H5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-10a3 3 0 0 0-3-3Zm1 13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-13a1 1 0 0 1 1-1h4.56a1 1 0 0 1 .95.68l.54 1.64a1 1 0 0 0 .95.68h7a1 1 0 0 1 1 1Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="calendar" viewBox="0 0 24 24">
<path fill="currentColor"
d="M19 4h-2V3a1 1 0 0 0-2 0v1H9V3a1 1 0 0 0-2 0v1H5a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3Zm1 15a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-7h16Zm0-9H4V7a1 1 0 0 1 1-1h2v1a1 1 0 0 0 2 0V6h6v1a1 1 0 0 0 2 0V6h2a1 1 0 0 1 1 1Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="heart" viewBox="0 0 24 24">
<path fill="currentColor"
d="M20.16 4.61A6.27 6.27 0 0 0 12 4a6.27 6.27 0 0 0-8.16 9.48l7.45 7.45a1 1 0 0 0 1.42 0l7.45-7.45a6.27 6.27 0 0 0 0-8.87Zm-1.41 7.46L12 18.81l-6.75-6.74a4.28 4.28 0 0 1 3-7.3a4.25 4.25 0 0 1 3 1.25a1 1 0 0 0 1.42 0a4.27 4.27 0 0 1 6 6.05Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="plus" viewBox="0 0 24 24">
<path fill="currentColor"
d="M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="minus" viewBox="0 0 24 24">
<path fill="currentColor" d="M19 11H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="cart" viewBox="0 0 24 24">
<path fill="currentColor"
d="M8.5 19a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 8.5 19ZM19 16H7a1 1 0 0 1 0-2h8.491a3.013 3.013 0 0 0 2.885-2.176l1.585-5.55A1 1 0 0 0 19 5H6.74a3.007 3.007 0 0 0-2.82-2H3a1 1 0 0 0 0 2h.921a1.005 1.005 0 0 1 .962.725l.155.545v.005l1.641 5.742A3 3 0 0 0 7 18h12a1 1 0 0 0 0-2Zm-1.326-9l-1.22 4.274a1.005 1.005 0 0 1-.963.726H8.754l-.255-.892L7.326 7ZM16.5 19a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="check" viewBox="0 0 24 24">
<path fill="currentColor"
d="M18.71 7.21a1 1 0 0 0-1.42 0l-7.45 7.46l-3.13-3.14A1 1 0 1 0 5.29 13l3.84 3.84a1 1 0 0 0 1.42 0l8.16-8.16a1 1 0 0 0 0-1.47Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="trash" viewBox="0 0 24 24">
<path fill="currentColor"
d="M10 18a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1ZM20 6h-4V5a3 3 0 0 0-3-3h-2a3 3 0 0 0-3 3v1H4a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2ZM10 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1h-4Zm7 14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8h10Zm-3-1a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="star-outline" viewBox="0 0 15 15">
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
d="M7.5 9.804L5.337 11l.413-2.533L4 6.674l2.418-.37L7.5 4l1.082 2.304l2.418.37l-1.75 1.793L9.663 11L7.5 9.804Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="star-solid" viewBox="0 0 15 15">
<path fill="currentColor"
d="M7.953 3.788a.5.5 0 0 0-.906 0L6.08 5.85l-2.154.33a.5.5 0 0 0-.283.843l1.574 1.613l-.373 2.284a.5.5 0 0 0 .736.518l1.92-1.063l1.921 1.063a.5.5 0 0 0 .736-.519l-.373-2.283l1.574-1.613a.5.5 0 0 0-.283-.844L8.921 5.85l-.968-2.062Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="search" viewBox="0 0 24 24">
<path fill="currentColor"
d="M21.71 20.29L18 16.61A9 9 0 1 0 16.61 18l3.68 3.68a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.39ZM11 18a7 7 0 1 1 7-7a7 7 0 0 1-7 7Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="user" viewBox="0 0 24 24">
<path fill="currentColor"
d="M15.71 12.71a6 6 0 1 0-7.42 0a10 10 0 0 0-6.22 8.18a1 1 0 0 0 2 .22a8 8 0 0 1 15.9 0a1 1 0 0 0 1 .89h.11a1 1 0 0 0 .88-1.1a10 10 0 0 0-6.25-8.19ZM12 12a4 4 0 1 1 4-4a4 4 0 0 1-4 4Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="close" viewBox="0 0 15 15">
<path fill="currentColor"
d="M7.953 3.788a.5.5 0 0 0-.906 0L6.08 5.85l-2.154.33a.5.5 0 0 0-.283.843l1.574 1.613l-.373 2.284a.5.5 0 0 0 .736.518l1.92-1.063l1.921 1.063a.5.5 0 0 0 .736-.519l-.373-2.283l1.574-1.613a.5.5 0 0 0-.283-.844L8.921 5.85l-.968-2.062Z" />
</symbol>
</defs>
</svg>
<div class="preloader-wrapper">
<div class="preloader">
</div>
</div>
<div class="offcanvas offcanvas-end" data-bs-scroll="true" tabindex="-1" id="offcanvasCart" aria-labelledby="My Cart">
<div class="offcanvas-header justify-content-center">
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="order-md-last">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text-primary">Your cart</span>
<span class="badge bg-primary rounded-circle pt-2">3</span>
</h4>
<ul class="list-group mb-3">
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<h6 class="my-0">Grey Hoodie</h6>
<small class="text-body-secondary">Brief description</small>
</div>
<span class="text-body-secondary">$12</span>
</li>
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<h6 class="my-0">Dog Food</h6>
<small class="text-body-secondary">Brief description</small>
</div>
<span class="text-body-secondary">$8</span>
</li>
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<h6 class="my-0">Soft Toy</h6>
<small class="text-body-secondary">Brief description</small>
</div>
<span class="text-body-secondary">$5</span>
</li>
<li class="list-group-item d-flex justify-content-between">
<span class="fw-bold">Total (USD)</span>
<strong>$20</strong>
</li>
</ul>
<button class="w-100 btn btn-primary btn-lg" type="submit">Continue to checkout</button>
</div>
</div>
</div>
<div class="offcanvas offcanvas-end" data-bs-scroll="true" tabindex="-1" id="offcanvasSearch"
aria-labelledby="Search">
<div class="offcanvas-header justify-content-center">
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="order-md-last">
<h4 class="text-primary text-uppercase mb-3">
Search
</h4>
<div class="search-bar border rounded-2 border-dark-subtle">
<form id="search-form" class="text-center d-flex align-items-center" action="" method="">
<input type="text" class="form-control border-0 bg-transparent" placeholder="Search Here" />
<iconify-icon icon="tabler:search" class="fs-4 me-3"></iconify-icon>
</form>
</div>
</div>
</div>
</div>
<section id="banner" class="py-3" style="background: #F9F3EC;">
<div class="container">
<div class="hero-content py-5 my-3">
<h2 class="display-1 mt-3 mb-0">Information de livraison </h2>
<nav class="breadcrumb">
<a class="breadcrumb-item nav-link" href="{{path('app_home')}}">Accueil</a>
<span class="breadcrumb-item active" aria-current="page">Paiement</span>
</nav>
</div>
</div>
</section>
<section class="shopify-cart checkout-wrap">
<div class="container py-5 my-5">
<form class="form-group">
<div class="row d-flex flex-wrap">
<div class="col-lg-6">
<h2 class="text-dark pb-3">Adresse de facturation</h2>
<div class="billing-details">
{% if app.user %}
{% if app.user.isVerified %}
<label for="fname">Nom*</label>
<input type="text" id="fname" name="firstname" required class="form-control mt-2 mb-4 ps-3" value="{{app.user.firstName}}">
<label for="lname">Prénom*</label>
<input type="text" id="lname" name="lastname" required class="form-control mt-2 mb-4 ps-3" value="{{app.user.surname}}">
{#
<label for="cname">Company Name(optional)*</label>
<input type="text" id="cname" name="companyname" class="form-control mt-2 mb-4">
<label for="cname">Country / Region*</label>
<select class="form-select form-control mt-2 mb-4" aria-label="Default select example">
<option selected="" hidden="">United States</option>
<option value="1">UK</option>
<option value="2">Australia</option>
<option value="3">Canada</option>
</select>
#}
<label for="address">Adresse*</label>
<input type="text" id="adr" name="address" placeholder="Rue"
class="form-control mt-3 ps-3 mb-3" value="{{app.user.adress}}">
<label for="additional-address-information">Informations supplémentaire</label>
<input type="text" id="adri" name="additional-address-information" placeholder="N° d'appartement, code, etc."
class="form-control ps-3 mb-4" value="{{app.user.additionalAdressInformation}}">
<label for="city">Ville*</label>
<input type="text" id="city" name="city" class="form-control mt-3 ps-3 mb-4" value="{{app.user.city}}">
{#
<label for="state">State *</label>
<select class="form-select form-control mt-2 mb-4" aria-label="Default select example">
<option selected="" hidden="">Florida</option>
<option value="1">New York</option>
<option value="2">Chicago</option>
<option value="3">Texas</option>
<option value="3">San Jose</option>
<option value="3">Houston</option>
</select>
#}
<label for="zip">Code postal*</label>
<input type="text" id="zip" name="zip" class="form-control mt-2 mb-4 ps-3" value="{{app.user.zipCode}}">
<label for="email">Téléphone</label>
<input type="text" id="phone" name="phone" class="form-control mt-2 mb-4 ps-3" value="{{app.user.phone}}">
<label for="email">Email*</label>
<input type="text" id="email" name="email" class="form-control mt-2 mb-4 ps-3" required value="{{app.user.email}}">
{% else %}
<p><a href="{{path('generate_confirmation_list')}}">Veuillez confirmer votre email via le mail de confirmation qui vous a été envoyé à votre addresse mail.</a></p>
{% endif %}
{% else %}
<p><a href="{{path('account')}}">Veuillez vous connecter ou créer un compte en cliquant sur ce <strong style="color: lightcoral">lien</strong>.</a></p>
{% endif %}
</div>
</div>
<div class="col-lg-6">
<h2 class="text-dark pb-3">Information Additionnelle</h2>
<div class="billing-details">
<label for="additional-delivery-information">Instruction supplémentaire (optionnel)</label>
<textarea id="additional_information" class="form-control pt-3 pb-3 ps-3 mt-2" style="text-transform: none;"
placeholder="Instructions à laisser au livreur"></textarea>
</div>
<div class="your-order mt-5">
{% if totalPrice != 0 %}
<h2 class="display-7 text-dark pb-3">Total à payer</h2>
<div class="total-price">
<table cellspacing="0" class="table">
<tbody>
<tr class="subtotal border-top border-bottom pt-2 pb-2 text-uppercase">
<th>Sous total</th>
<td data-title="Subtotal">
<span class="price-amount amount ps-5">
<bdi>
{{totalPrice | number_format(2, ',', '')}}
<span class="price-currency-symbol">€</span>
</bdi>
</span>
</td>
</tr>
<tr class="weight border-top border-bottom pt-2 pb-2">
<th>Frais de port</th>
<td data-title="weight">
<span class="weight-amount amount ps-5">
<bdi>
{{weightPrice | number_format(2, ',', '')}} € ({{totalWeight}})
</bdi>
</span>
</td>
</tr>
<tr class="order-total border-bottom pt-2 pb-2 text-uppercase">
<th>Total</th>
<td data-title="Total">
<span class="ttc-price-amount amount ps-5">
<bdi>
<span class="price-currency-symbol"></span>{{ttcPrice | number_format(2, ',', '')}}€</bdi>
</span>
</td>
</tr>
</tbody>
</table>
<div class="list-group mt-5 mb-3">
<label class="list-group-item d-flex gap-2 border-0">
<input class="form-check-input flex-shrink-0" type="radio" name="listGroupRadios"
id="listGroupRadios1" value="" checked="">
<span>
<strong class="text-uppercase">Livraison postal</strong>
<small class="d-block text-body-secondary">Nous vous envoyons vortre commande, emballé par nos soins, via La Poste</small>
</span>
</label>
{#
<label class="list-group-item d-flex gap-2 border-0">
<input class="form-check-input flex-shrink-0" type="radio" name="listGroupRadios"
id="listGroupRadios2" value="">
<span>
<strong class="text-uppercase">Check payments</strong>
<small class="d-block text-body-secondary">Please send a check to Store Name, Store Street, Store
Town, Store State / County, Store Postcode.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2 border-0">
<input class="form-check-input flex-shrink-0" type="radio" name="listGroupRadios"
id="listGroupRadios3" value="">
<span>
<strong class="text-uppercase">Cash on delivery</strong>
<small class="d-block text-body-secondary">Pay with cash upon delivery.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2 border-0">
<input class="form-check-input flex-shrink-0" type="radio" name="listGroupRadios"
id="listGroupRadios3" value="">
<span>
<strong class="text-uppercase">Paypal</strong>
<small class="d-block text-body-secondary">Pay via PayPal; you can pay with your credit card if
you don’t have a PayPal account.</small>
</span>
</label>
#}
</div>
<div class="form-error-messages hide">Error messages</div>
<a id="payment-button" href="{{path('payment')}}" type="submit" name="submit" class="btn btn-dark btn-lg rounded-1 w-100">Payer</a>
</div>
{% else %}
<div class="d-flex justify-content-center" style="background-color: lightgrey;">
<h6 class="m-5 fs-5">Le panier est vide !</h6>
</div>
{% endif %}
</div>
</div>
</div>
</form>
</div>
</section>
</body>
</html>
{% endblock body %}