Détails de la Commande

Détails de Votre Commande

Commande n°<%= @order.id %> <%= @order.created_at.strftime("%d %B %Y") %>
Payée

Événement

<%= @order.event.name %>

<% if @order.event.start_time %>
<%= @order.event.start_time.strftime("%d %B %Y à %H:%M") %>
<% end %> <% if @order.event.venue_name.present? %>
<%= @order.event.venue_name %>
<% end %> <% if @order.event.venue_address.present? %>
<%= @order.event.venue_address %>
<% end %>

Récapitulatif

<% @order.tickets.each do |ticket| %>

<%= ticket.ticket_type.name %>

<%= ticket.first_name %> <%= ticket.last_name %>
Actif
<%= ticket.price_euros %>€
<% end %>
<% if @order.promotion_codes.any? %>

Codes promotionnels appliqués

<% @order.promotion_codes.each do |promo_code| %>
<%= promo_code.code %>
-<%= promo_code.discount_amount_euros %>€
<% end %>
<% end %>

Détail du paiement

Sous-total <%= @order.subtotal_amount_euros %>€
<% if @order.discount_amount_cents > 0 %>
Réduction -<%= @order.discount_amount_euros %>€
<% end %>
Total payé <% if @order.total_amount_cents == 0 %> GRATUIT <% else %> <%= @order.total_amount_euros %>€ <% end %>

Accédez à Vos Billets

Téléchargez ou consultez vos billets

Télécharger Vos Billets

Gardez vos billets sur votre téléphone ou imprimez-les.

<% @order.tickets.each_with_index do |ticket, index| %>
<%= link_to ticket_path(ticket.qr_code), class: "flex-1 flex items-center text-purple-700 hover:text-purple-800 font-medium" do %>
<%= index + 1 %>
<%= ticket.first_name %> <%= ticket.last_name %> <% end %> <%= link_to ticket_download_path(ticket.qr_code), class: "ml-3 p-2 text-purple-600 hover:text-purple-800 hover:bg-purple-200 rounded-lg transition-colors", title: "Télécharger le billet PDF" do %> <% end %>
<% end %>

Le Jour de l'Événement

Présentez votre billet (QR code) à l'entrée. Arrivez un peu en avance !

<%= link_to dashboard_path, class: "block w-full text-center py-3 px-4 bg-purple-600 hover:bg-purple-700 text-white font-medium rounded-lg transition-colors" do %>
Retour au tableau de bord
<% end %> <%= link_to event_path(@order.event.slug, @order.event), class: "block w-full text-center py-3 px-4 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 transition-colors" do %>
Voir la fiche de l'événement
<% end %>