112 lines
5.9 KiB
Twig
112 lines
5.9 KiB
Twig
|
|
{% extends 'base.html.twig' %}
|
||
|
|
|
||
|
|
{% block title %}Paiement - {{ advert.orderNumber.numOrder }} - SARL SITECONSEIL{% endblock %}
|
||
|
|
|
||
|
|
{% block body %}
|
||
|
|
<main class="max-w-3xl mx-auto px-4 py-10">
|
||
|
|
<div class="glass p-8 mb-6">
|
||
|
|
<div class="flex items-center justify-between mb-6">
|
||
|
|
<div>
|
||
|
|
<p class="text-[10px] font-bold uppercase tracking-widest text-gray-400">Avis de paiement</p>
|
||
|
|
<h1 class="text-2xl font-bold heading-page font-mono">{{ advert.orderNumber.numOrder }}</h1>
|
||
|
|
<p class="text-xs text-gray-500 mt-1">Date : {{ advert.createdAt|date('d/m/Y') }}</p>
|
||
|
|
</div>
|
||
|
|
<div class="text-right">
|
||
|
|
{% if advert.state == 'cancel' %}
|
||
|
|
<span class="px-3 py-1 bg-gray-100 text-gray-600 font-bold uppercase text-xs rounded-lg">Annule</span>
|
||
|
|
{% else %}
|
||
|
|
<span class="px-3 py-1 bg-yellow-100 text-yellow-800 font-bold uppercase text-xs rounded-lg">En attente de paiement</span>
|
||
|
|
{% endif %}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{% if customer %}
|
||
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-8">
|
||
|
|
<div class="glass p-4">
|
||
|
|
<p class="text-[10px] font-bold uppercase tracking-widest text-gray-400 mb-2">Emetteur</p>
|
||
|
|
<p class="text-sm font-bold">SARL SITECONSEIL</p>
|
||
|
|
<p class="text-xs text-gray-500 mt-1">
|
||
|
|
27 rue Le Sérurier<br>
|
||
|
|
02100 Saint-Quentin, France<br>
|
||
|
|
SIREN 943121517
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
<div class="glass p-4">
|
||
|
|
<p class="text-[10px] font-bold uppercase tracking-widest text-gray-400 mb-2">Client</p>
|
||
|
|
<p class="text-sm font-bold">{{ customer.fullName }}</p>
|
||
|
|
<p class="text-xs text-gray-500 mt-1">
|
||
|
|
{% if customer.raisonSociale %}{{ customer.raisonSociale }}<br>{% endif %}
|
||
|
|
{% if customer.address %}{{ customer.address }}<br>{% endif %}
|
||
|
|
{% if customer.zipCode or customer.city %}{{ customer.zipCode }} {{ customer.city }}<br>{% endif %}
|
||
|
|
{% if customer.email %}{{ customer.email }}{% endif %}
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endif %}
|
||
|
|
|
||
|
|
<h2 class="text-sm font-bold uppercase tracking-wider mb-3">Detail des prestations</h2>
|
||
|
|
<div class="glass overflow-hidden mb-6">
|
||
|
|
<table class="w-full text-sm">
|
||
|
|
<thead>
|
||
|
|
<tr class="glass-dark text-white">
|
||
|
|
<th class="px-4 py-3 text-left font-bold uppercase text-xs tracking-widest">#</th>
|
||
|
|
<th class="px-4 py-3 text-left font-bold uppercase text-xs tracking-widest">Prestation</th>
|
||
|
|
<th class="px-4 py-3 text-right font-bold uppercase text-xs tracking-widest">Prix HT</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{% for line in advert.lines %}
|
||
|
|
<tr class="border-b border-white/20">
|
||
|
|
<td class="px-4 py-3 text-gray-400 text-xs">{{ loop.index }}</td>
|
||
|
|
<td class="px-4 py-3">
|
||
|
|
<div class="font-bold">{{ line.title }}</div>
|
||
|
|
{% if line.description %}
|
||
|
|
<div class="text-xs text-gray-500 whitespace-pre-wrap mt-1">{{ line.description }}</div>
|
||
|
|
{% endif %}
|
||
|
|
</td>
|
||
|
|
<td class="px-4 py-3 text-right font-mono">{{ line.priceHt }} €</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="flex justify-end mb-8">
|
||
|
|
<div class="w-full max-w-xs glass p-4">
|
||
|
|
<div class="flex justify-between text-xs text-gray-500 mb-1">
|
||
|
|
<span class="font-bold uppercase tracking-widest">Total HT</span>
|
||
|
|
<span class="font-mono">{{ advert.totalHt }} €</span>
|
||
|
|
</div>
|
||
|
|
<div class="flex justify-between text-xs text-gray-500 mb-2">
|
||
|
|
<span class="font-bold uppercase tracking-widest">TVA 20%</span>
|
||
|
|
<span class="font-mono">{{ advert.totalTva }} €</span>
|
||
|
|
</div>
|
||
|
|
<div class="flex justify-between text-base font-bold border-t border-white/30 pt-2">
|
||
|
|
<span class="uppercase tracking-widest">Total TTC</span>
|
||
|
|
<span class="font-mono">{{ advert.totalTtc }} €</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{% if advert.state != 'cancel' %}
|
||
|
|
<div class="glass p-6 text-center">
|
||
|
|
<h2 class="text-sm font-bold uppercase tracking-wider mb-4">Options de paiement</h2>
|
||
|
|
<p class="text-xs text-gray-500 mb-6">Les options de paiement seront disponibles prochainement.</p>
|
||
|
|
<div class="flex flex-col sm:flex-row gap-3 justify-center">
|
||
|
|
<button disabled class="px-6 py-4 bg-gray-200 text-gray-400 font-bold uppercase text-xs tracking-widest rounded-lg cursor-not-allowed">
|
||
|
|
Carte bancaire (bientot)
|
||
|
|
</button>
|
||
|
|
<button disabled class="px-6 py-4 bg-gray-200 text-gray-400 font-bold uppercase text-xs tracking-widest rounded-lg cursor-not-allowed">
|
||
|
|
Virement (bientot)
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endif %}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<p class="text-center text-[10px] text-gray-400 uppercase tracking-widest">
|
||
|
|
Une question ? <a href="mailto:contact@siteconseil.fr" class="text-[#fabf04] hover:underline">contact@siteconseil.fr</a>
|
||
|
|
</p>
|
||
|
|
</main>
|
||
|
|
{% endblock %}
|