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:
@@ -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 € HT, vous recevez <strong class="text-green-600">{{ (20 - (20 * (invitation.commissionRate ?? 3) / 100) - (20 * 0.015 + 0.25))|number_format(2, ',', ' ') }} €</strong> (commission E-Ticket {{ ((20 * (invitation.commissionRate ?? 3) / 100))|number_format(2, ',', ' ') }} € + Stripe {{ (20 * 0.015 + 0.25)|number_format(2, ',', ' ') }} €)</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, ',', ' ') }} €</td>
|
||||
<td class="py-2 text-right text-red-600">{{ eticket_fee|number_format(2, ',', ' ') }} €</td>
|
||||
<td class="py-2 text-right text-red-600">{{ stripe_fee|number_format(2, ',', ' ') }} €</td>
|
||||
<td class="py-2 text-right text-red-600">{{ total_fee|number_format(2, ',', ' ') }} €</td>
|
||||
<td class="py-2 text-right text-green-600 font-black">{{ net|number_format(2, ',', ' ') }} €</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user