<% content_for :sidebar do %> <%= render "settings/nav" %> <% end %>

<%= t(".page_title") %>

<%= settings_section title: t(".subscription_title"), subtitle: t(".subscription_subtitle") do %>
<%= lucide_icon "gem", class: "w-5 h-5 text-gray-500" %>
<% if @user.family.subscribed? || subscription_pending? %>

You are currently subscribed to Maybe+

Manage your billing settings here.

<% else %>

You are currently not subscribed

Once you subscribe to Maybe+, you’ll see your billing settings here.

<% end %>
<% if @user.family.subscribed? || subscription_pending? %> <%= link_to subscription_path, class: "btn btn--secondary flex items-center gap-1" do %> Manage <%= lucide_icon "external-link", class: "w-5 h-5 shrink-0 text-gray-500" %> <% end %> <% else %> <%= link_to new_subscription_path, class: "btn btn--secondary flex items-center gap-1" do %> Subscribe <%= lucide_icon "external-link", class: "w-5 h-5 shrink-0 text-gray-500" %> <% end %> <% end %>
<%= image_tag "stripe-logo.svg", class: "w-5 h-5 shrink-0" %>

Managed via Stripe

<% end %> <%= settings_nav_footer %>