<% if order.has_step?("address") %>
-
<%= Harpiya.t(:shipping_address) %>
<%= checkout_edit_link %>
<%= render 'harpiya/shared/address', address: order.ship_address %>
-
<%= Harpiya.t(:billing_address) %>
<%= checkout_edit_link %>
<%= render 'harpiya/shared/address', address: order.bill_address %>
<% end %>
<% if order.has_step?("delivery") %>
-
<%= Harpiya.t(:shipping) %>
<%= checkout_edit_link('delivery') %>
<% @order.shipments.valid.each do |shipment| %>
- <%= shipment.shipping_method&.name %>
<% end %>
<%= render 'harpiya/shared/shipment_tracking', order: order if order.shipped? %>
<% end %>
<% if order.has_step?("payment") %>
-
<%= Harpiya.t(:payment) %>
<%= checkout_edit_link('payment') %>
-
<%= render collection: @order.payments.valid, partial: 'harpiya/shared/payment' %>
-
<% if @order.using_store_credit? %>
<%= button_tag Harpiya.t('store_credit.remove'), name: 'remove_store_credit', class: 'continue btn' %>
<% end %>
<% end %>