%# locals: (quote:, subscription: nil) %> <% return if quote.blank? %> <% quoted_plan_active = current_paid_plan?(subscription, quote.plan) %>
<% if quoted_plan_active %> <%= t("billing.bank_transfer.quote_banner_active_title") %> <%= raw t( "billing.bank_transfer.quote_banner_active_body_html", plan: quote.plan.name, price: quote.price_label, date: subscription&.current_period_end.present? ? l_local(subscription.current_period_end.to_date) : t("billing.subscription_status.end_of_period") ) %> <% else %> <%= t("billing.bank_transfer.quote_banner_title") %> <%= raw t("billing.bank_transfer.quote_banner_body_html", plan: quote.plan.name, price: quote.price_label) %> <% end %>