<% if order_just_completed?(@order) %> <%= icon(name: 'check-mark-circle', classes: 'd-block d-lg-none mx-auto order-show-check-mark', width: 56, height: 56) %> <%= icon(name: 'check-mark-circle', classes: 'd-none d-lg-block mx-auto order-show-check-mark', width: 102, height: 102) %>
<%= Spree.t(:order_success) %>

<%= Spree.t(:order_success_explain) %>

<% end %>

<%= accurate_title %> / <%= pretty_date(@order.completed_at) %>

<%= Spree.t(:shipping_address) %>
<%= render 'spree/shared/address', address: @order.ship_address %>
<%= Spree.t(:billing_address) %>
<%= render 'spree/shared/address', address: @order.bill_address %>
<%= Spree.t(:shipping) %>
<% @order.shipments.valid.each do |shipment| %>
<%= shipment.shipping_method.name %> <%= link_to_tracking(shipment) if shipment.shipped? %>
<% end %>
<%= Spree.t(:payment) %>
<%= render collection: @order.payments.valid, partial: 'spree/shared/payment' %>

<% @order.line_items.each do |item| %>
<%= link_to product_image(item.variant), item.product %>
<%= item.name %>
    <% item.variant.option_values.sort { |ov| ov.option_type.position }.each do |ov| %>
  • <%= "#{ov.option_type.presentation}: #{ov.name.titleize}" %>
  • <% end %>
<%= Spree.t(:price) %>
<%= item.single_money.to_html %>
<%= Spree.t(:quantity) %>
<%= item.quantity %>
<%= Spree.t(:total) %>
<%= item.display_total.to_s %>
<% end %>

<%= render partial: 'spree/checkout/summary', locals: { order: @order } %>