{% extends 'base2.html.twig' %}
{% block title %}Hello DefaultController!{% endblock %}
{% block body %}
<style>
body{
background-color: #f1f3f7;
}
.avatar-lg {
height: 5rem;
width: 5rem;
}
.font-size-18 {
font-size: 18px!important;
}
.text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
a {
text-decoration: none!important;
}
.w-xl {
min-width: 160px;
}
.card {
margin-bottom: 24px;
-webkit-box-shadow: 0 2px 3px #e4e8f0;
box-shadow: 0 2px 3px #e4e8f0;
}
.card {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid #eff0f2;
border-radius: 1rem;
}
</style>
<section class="landing-padding">
<div class="container my-5" style="height: 100vh;">
<div class="row">
<div class="col-xl-8">
<div class="card border shadow-none">
<div class="card-body">
<div class="d-flex align-items-start border-bottom pb-3">
<div class="flex-grow-1 align-self-center overflow-hidden">
<div>
<h5 class="text-truncate font-size-18"><a href="#" class="text-dark">Crédit Modixom </a></h5>
</div>
</div>
<div class="flex-shrink-0 ms-2">
<ul class="list-inline mb-0 font-size-16">
<li class="list-inline-item">
<a href="#" class="text-muted px-1">
<i class="mdi mdi-trash-can-outline"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#" class="text-muted px-1">
<i class="mdi mdi-heart-outline"></i>
</a>
</li>
</ul>
</div>
</div>
<div>
<div class="row">
<div class="col-md-4">
<div class="mt-3">
<p class="text-muted mb-2">Prix</p>
<h5 class="mb-0 mt-2"><span class="text-muted me-2">{{qt}}€</span></h5>
</div>
</div>
<div class="col-md-5">
<div class="mt-3">
<p class="text-muted mb-2">Quantité</p>
<div class="d-inline-flex">
{{qt}}
</div>
</div>
</div>
<div class="col-md-3">
<div class="mt-3">
<p class="text-muted mb-2">Total</p>
<h5>{{qt}}€</h5>
</div>
</div>
</div>
</div>
<div>
<form action="{{path('paiementStripeForm')}}" method="post" >
<div class="row">
<div class="col-md-12">
<div class="mt-3">
<input type="checkbox" required><label> J'accepte les <a href='#' style='color: #D82E9F !important'>conditions générales de ventes</a></label>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end card -->
<div class="row my-4">
<div class="col-sm-6">
<a href="{{path('achatCredit')}}" class="btn btn-link text-muted">
<i class="mdi mdi-arrow-left me-1"></i> Retour au choix des crédits </a>
</div> <!-- end col -->
<div class="col-sm-6">
<div class="text-sm-end mt-2 mt-sm-0">
<input type="hidden" name="qt" value="{{qt}}">
<button class="btn" style="background-color: #ACB9CA; color: white" type="submit"><i class="mdi mdi-cart-outline me-1"></i> Acheter </button>
</form>
</div>
</div> <!-- end col -->
</div> <!-- end row-->
</div>
<div class="col-xl-4">
<div class="mt-5 mt-lg-0">
<div class="card border shadow-none">
<div class="card-header bg-transparent border-bottom py-3 px-4">
<h5 class="font-size-16 mb-0">Récapitulatif de la commande</h5>
</div>
<div class="card-body p-4 pt-2">
<div class="table-responsive">
<table class="table mb-0">
<tbody>
<tr>
<td>Sous-total :</td>
<td class="text-end">{{qt}}€</td>
</tr>
<tr>
<td>Nombre de crédit : </td>
<td class="text-end">{{qt}}</td>
</tr>
<tr class="bg-light">
<th>Total :</th>
<td class="text-end">
<span class="fw-bold">
{{qt}}€
</span>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end table-responsive -->
</div>
</div>
</div>
</div>
</div>
</section>
<!-- end row -->
{% endblock %}