%# locals: (club: nil, entitlements: nil, subscription: nil, current_plan_slug: nil, show_stripe_portal: false, show_guarantee_banner: nil) %> <% club ||= @club %> <% entitlements ||= @entitlements %> <% subscription ||= @subscription %> <% current_slug = local_assigns.fetch(:current_plan_slug, nil).presence || entitlements&.plan&.slug || subscription&.plan&.slug || "free" %> <% current_interval = subscription&.billing_interval %> <% billing_mode = club.present? %>
<%= t("pages.plans.recommended_badge") %>
<% end %> <%= render "shared/plan_title", plan: plan %> <% if plan.slug == "free" %><%= t("billing.bank_transfer.quoted_interval.#{quote.billing_interval}") %>
<%= t("pages.plans.price_equiv", price: equiv) %>
<% end %><%= raw t("pages.plans.price_alt_html", price: monthly) %>
<% end %><%= t("pages.plans.staff_note_full") %>
<% end %> <% first_purchase = !billing_mode || action&.fetch(:kind, nil).in?(%i[checkout_options bank_only quoted]) %> <% show_cta_guarantee = plan.slug.in?(%w[premium_light premium_full]) && first_purchase %><%= action[:label] %>
<% elsif action_kind.in?(%i[checkout_options change_options interval_switch quoted bank_only]) %> <% if billing_profile_blocks_premium?(club) %><%= billing_profile_incomplete_message(club) %>
<%= link_to t("pages.plans.complete_billing"), public_club_billing_profile_path(club, plan: plan.slug), class: "btn btn-primary" %> <% else %> <% unless action_kind.in?(%i[quoted bank_only]) %><%= t("billing.bank_transfer.or_label") %>
<% end %><%= t("billing.bank_transfer.hint") %>
<% end %> <% end %> <% end %> <% elsif plan.slug == "free" %> <%= link_to t("pages.plans.start_free"), public_signup_path, class: "btn btn-secondary" %> <% else %>