% if @order.using_store_credit? %>
<%= Harpiya.t('store_credit.applicable_amount', amount: Harpiya::Money.new(@order.total_applicable_store_credit, { currency: @order.currency })).html_safe %>
<% if @order.covered_by_store_credit? %>
<%= Harpiya.t('store_credit.remaining_amount', amount: @order.display_store_credit_remaining_after_capture).html_safe %>
<% else %>
<%= Harpiya.t('store_credit.additional_payment_needed', amount: @order.display_order_total_after_store_credit).html_safe %>
<%= button_tag Harpiya.t('store_credit.remove'), name: 'remove_store_credit', class: 'store-credit-button continue btn btn-lg btn-primary font-weight-bold text-uppercase align-self-start' %>
<% end %>
<% elsif @order.could_use_store_credit? %>
<%= Harpiya.t('store_credit.available_amount', amount: @order.display_total_available_store_credit).html_safe %>
<%= button_tag Harpiya.t('store_credit.apply'), name: 'apply_store_credit', class: 'store-credit-button continue btn btn-lg btn-primary font-weight-bold text-uppercase' %>
<% end %>