% content_for :title, t("billing.profile.title", name: @club.name) %>
<% content_for :robots, "noindex, nofollow" %>
<%= t("billing.profile.heading") %>
<%= t("billing.profile.lead", name: @club.name) %>
<% plan_return = params[:plan].presence_in(%w[premium_light premium_full]) %>
<% unless @club.billing_profile_complete? %>
<%= t("billing.profile.required_notice") %>
<%= billing_profile_incomplete_message(@club) %>
<% if plan_return %>
<%= raw t("billing.profile.after_save_hint_html", plan: Plan[plan_return].name) %>
<% end %>
<% end %>
<%= form_with url: public_club_billing_profile_path(@club), method: :patch do %>
<%= hidden_field_tag :plan, plan_return if plan_return %>
<%= hidden_field_tag :interval, params[:interval] if params[:interval].present? %>
<%= render "shared/billing_profile_fields", record: @club %>
<% if plan_return %>
<%= render "shared/refund_guarantee", variant: "checkout" %>
<% end %>
<%= submit_tag t("billing.profile.submit"), class: "btn btn-primary" %>
<% end %>
<%= link_to t("billing.profile.back_to_billing"), public_club_billing_path(@club) %>