<%= render 'components/breadcrumb', crumbs: [ { name: 'Accueil', path: root_path }, { name: 'Tableau de bord', path: dashboard_path }, { name: "Commande ##{@order.id}", path: order_path(@order) }, { name: "Billet ##{@ticket.id}", path: nil } ] %>

Billet électronique

ID: #<%= @ticket.id %>

<%= case @ticket.status when 'active' then 'Valide' when 'draft' then 'En attente' when 'used' then 'Utilisé' when 'expired' then 'Expiré' when 'refunded' then 'Remboursé' else @ticket.status.humanize end %>

Détails de l'événement

<%= @event.name %>

<%= @event.start_time.strftime("%d %B %Y") %>
<%= @event.start_time.strftime("%H:%M") %>
<%= @event.venue_name %>

<%= @ticket.ticket_type.name %>

<%= @ticket.ticket_type.description %>

<%= number_to_currency(@ticket.price_euros, unit: "€", separator: ",", delimiter: " ", format: "%n %u") %>

Informations du billet

<%= @ticket.first_name %>

<%= @ticket.last_name %>

<%= @ticket.created_at.strftime("%d %B %Y à %H:%M") %>

<%= @ticket.qr_code %>

<%= link_to order_path(@order), class: "px-6 py-3 border border-gray-300 text-gray-700 rounded-xl hover:bg-gray-50 text-center font-medium transition-colors duration-200" do %> Retour aux informations de commande <% end %> <% if @ticket.status == 'active' %> <%= link_to ticket_download_path(@ticket.qr_code), class: "flex-1 btn btn-primary py-3 px-6 rounded-xl shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2 transform hover:-translate-y-0.5 text-center" do %> Télécharger le PDF <% end %> <% end %>

Informations importantes

  • • Présentez ce billet (ou son code QR) à l'entrée de l'événement
  • • Arrivez en avance pour éviter les files d'attente
  • • En cas de problème, contactez l'organisateur