<%= content_for :page_title, t(".page_title") %> <%= settings_section title: t(".subscription_title"), subtitle: t(".subscription_subtitle") do %>
<%= render DS::FilledIcon.new( icon: "gem", rounded: true, size: "lg" ) %>
<% if @family.has_active_subscription? %>

Currently on the <%= @family.subscription.name %>.
<% if @family.next_payment_date %> <% if @family.subscription_pending_cancellation? %> <%= t("views.settings.payments.cancellation", date: l(@family.next_payment_date, format: :long)) %> <% else %> <%= t("views.settings.payments.renewal", date: l(@family.next_payment_date, format: :long)) %> <% end %> <% end %>

<% elsif @family.trialing? %>

Currently using the open demo of <%= product_name %>
(Data will be deleted in <%= @family.days_left_in_trial %> days)

<% else %>

You are currently not contributing

Contributions to <%= product_name %> will show here.

<% end %>
<% if @family.has_active_subscription? %> <%= render DS::Link.new( text: "Manage", icon: "external-link", variant: "primary", icon_position: "right", href: subscription_path, rel: "noopener" ) %> <% else %> <%= render DS::Link.new( text: "Choose level", variant: "primary", icon: "plus", icon_position: "right", href: upgrade_subscription_path(view: "upgrade"), rel: "noopener") %> <% end %>
<%= image_tag "stripe-logo.svg", class: "w-5 h-5 shrink-0" %>

Payment via Stripe

<% end %>