= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Payments' }

- content_for :page_title do
  %i.icon-arrow-right
  = Spree.t("activerecord.models.#{@payment.class.to_s.underscore}.one")
  %i.icon-arrow-right
  = payment_method_name(@payment)

- content_for :page_actions do
  %li= button_link_to Spree.t(:back_to_payments_list), spree.admin_order_payments_url(@order), icon: 'icon-arrow-left'

= render partial: "spree/admin/payments/source_views/#{@payment.payment_method.method_type}", locals: { payment: @payment.source.is_a?(Spree::Payment) ? @payment.source : @payment }

.align-center
  %h5
    = label_tag nil, Spree.t(:amount)
    \:
    %span.green= @payment.amount
