<% @plans.each do |plan| %>
<% action = billing_mode ? plan_billing_action(
current_slug: current_slug,
target_plan: plan,
stripe_subscription_active: stripe_subscription_active?(subscription),
current_interval: current_interval,
subscription: subscription,
club: club
) : nil %>
<% featured = plan.slug == "premium_full" %>
">
<% if featured %>
<%= t("pages.plans.recommended_badge") %>
<% end %>
<%= render "shared/plan_title", plan: plan %>
<% if plan.slug == "free" %>
€0
<% elsif billing_mode && club&.active_billing_quote&.plan_slug == plan.slug %>
<% quote = club.active_billing_quote %>
"><%= quote.formatted_amount %>
<%= t("billing.bank_transfer.quoted_badge") %>
<%= t("billing.bank_transfer.quoted_interval.#{quote.billing_interval}") %>
<% else %>
<% yearly = Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %>
<% monthly = Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly") %>
<% list = Billing::Stripe::PriceCatalog.list_label(plan_slug: plan.slug, interval: "yearly") %>
<% equiv = Billing::Stripe::PriceCatalog.equivalent_monthly_label(plan_slug: plan.slug) %>
<% if list.present? %>
<%= list %>
<% end %>
"><%= yearly %>
<%= t("pages.plans.launch_price") %>
<% if equiv.present? %>
<%= t("pages.plans.price_equiv", price: equiv) %>
<% end %>
<%= raw t("pages.plans.price_alt_html", price: monthly) %>
<% end %>
- <%= raw(plan.max_staff_transmission ? t("pages.plans.staff_html", count: plan.max_staff_transmission) : t("pages.plans.staff_unlimited_html")) %>
- <%= raw t("pages.plans.matches_html", count: plan.concurrent_streams_limit || t("pages.plans.matches_unlimited")) %>
- <%= raw t(
"pages.plans.replay_html",
value: plan.recordings_enabled? ? t("pages.plans.replay_days", count: plan.recording_days) : t("pages.plans.replay_none")
) %>
- <%= raw t(
"pages.plans.youtube_html",
value: if plan.slug == "premium_light"
t("pages.plans.youtube_mltv")
elsif plan.youtube_enabled?
t("pages.plans.youtube_club")
else
t("pages.plans.youtube_none")
end
) %>
<% if plan.slug == "premium_full" %>
<%= t("pages.plans.staff_note_full") %>
<% end %>
<% if billing_mode %>
<% action_kind = action[:kind] %>
<% quote = club&.active_billing_quote %>
<% pending_transfer = club&.pending_transfer_order %>
<% if action_kind == :current %>
<%= action[:label] %>
<% elsif action_kind == :none %>
<% elsif action_kind.in?(%i[contact disabled quoted_other]) %>
<%= 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]) %>
<% plan_intervals_for_display(action[:intervals]).each do |interval| %>
<% btn_kind = action_kind == :checkout_options ? :checkout_options : action_kind %>
<%= link_to plan_interval_button_label(plan, interval, kind: btn_kind),
plan_interval_checkout_path(club, plan, interval),
class: plan_interval_button_class(interval) %>
<% end %>
<% end %>
<% transfer_intervals = action_kind == :quoted ? action[:intervals] : (action[:intervals].presence || bank_transfer_intervals_for(plan)) %>
<% if MatchLiveTv.bank_transfer_configured? && transfer_intervals.any? %>
<% unless action_kind.in?(%i[quoted bank_only]) %>
<%= t("billing.bank_transfer.or_label") %>
<% end %>
<% plan_intervals_for_display(transfer_intervals).each do |interval| %>
<% next unless show_bank_transfer_for?(club: club, plan: plan, interval: interval, quote: quote, pending_transfer: pending_transfer) %>
<%= button_to t("billing.bank_transfer.pay_button_with_price", price: bank_transfer_price_label(plan, interval, quote: quote)),
public_club_billing_bank_transfer_path(club, plan: plan.slug, interval: interval),
method: :post,
class: "btn btn-outline plan-interval-btn",
form: { data: { turbo_confirm: t("billing.bank_transfer.hint") } } %>
<% 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 %>
<% %w[yearly monthly].each do |interval| %>
<%= link_to t(
"billing.messages.activate_button",
plan: plan_cta_name(plan),
price: Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: interval)
),
public_signup_path(plan: plan.slug, interval: interval),
class: plan_interval_button_class(interval) %>
<% end %>
<% end %>