Add commission examples table for 1, 2, 5, 10, 15, 20 EUR on invitation landing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-22 19:18:11 +01:00
parent d7a498292f
commit ddeee82dd8

View File

@@ -142,8 +142,34 @@
<p class="text-xs font-bold text-gray-500 mt-1">Frais standard cartes europeennes</p>
</div>
</div>
<div class="mt-6 pt-4 border-t-2 border-gray-200 text-center">
<p class="text-xs font-bold text-gray-400">Exemple : pour un billet a 20 &euro; HT, vous recevez <strong class="text-green-600">{{ (20 - (20 * (invitation.commissionRate ?? 3) / 100) - (20 * 0.015 + 0.25))|number_format(2, ',', ' ') }} &euro;</strong> (commission E-Ticket {{ ((20 * (invitation.commissionRate ?? 3) / 100))|number_format(2, ',', ' ') }} &euro; + Stripe {{ (20 * 0.015 + 0.25)|number_format(2, ',', ' ') }} &euro;)</p>
{% set rate = invitation.commissionRate ?? 3 %}
<div class="mt-6 pt-4 border-t-2 border-gray-200 overflow-x-auto">
<table class="w-full text-xs font-bold" style="min-width: 500px;">
<thead>
<tr class="border-b-2 border-gray-900">
<th class="py-2 text-left text-gray-400 uppercase tracking-widest">Prix billet</th>
<th class="py-2 text-right text-gray-400 uppercase tracking-widest">E-Ticket ({{ rate }}%)</th>
<th class="py-2 text-right text-gray-400 uppercase tracking-widest">Stripe</th>
<th class="py-2 text-right text-gray-400 uppercase tracking-widest">Total frais</th>
<th class="py-2 text-right text-green-600 uppercase tracking-widest">Vous recevez</th>
</tr>
</thead>
<tbody>
{% for price in [1, 2, 5, 10, 15, 20] %}
{% set eticket_fee = price * rate / 100 %}
{% set stripe_fee = price * 0.015 + 0.25 %}
{% set total_fee = eticket_fee + stripe_fee %}
{% set net = price - total_fee %}
<tr class="border-b border-gray-100">
<td class="py-2 text-left">{{ price|number_format(2, ',', ' ') }} &euro;</td>
<td class="py-2 text-right text-red-600">{{ eticket_fee|number_format(2, ',', ' ') }} &euro;</td>
<td class="py-2 text-right text-red-600">{{ stripe_fee|number_format(2, ',', ' ') }} &euro;</td>
<td class="py-2 text-right text-red-600">{{ total_fee|number_format(2, ',', ' ') }} &euro;</td>
<td class="py-2 text-right text-green-600 font-black">{{ net|number_format(2, ',', ' ') }} &euro;</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>