<% if Current.account.exceeding_card_limit? && Current.account.exceeding_storage_limit? %>
You’ve used up your <%= number_with_delimiter(Plan.free.card_limit) %> free cards and all <%= storage_to_human_size(Plan.free.storage_limit) %> of free storage
<% elsif Current.account.exceeding_card_limit? %>
You’ve used up your <%= number_with_delimiter(Plan.free.card_limit) %> free cards
<% elsif Current.account.exceeding_storage_limit? %>
You’ve used up all <%= storage_to_human_size(Plan.free.storage_limit) %> of free storage
<% else %>
You’ve used <%= Current.account.billed_cards_count %> free cards out of <%= number_with_delimiter(Plan.free.card_limit) %>
<% end %>
To keep using Fizzy <%= "past #{ number_with_delimiter(Plan.free.card_limit) } cards," unless Current.account.exceeding_storage_limit? %> it’s only <%= format_currency(Plan.paid.price) %>/month for unlimited cards, unlimited users, and <%= storage_to_human_size(Plan.paid.storage_limit) %> of storage.
<%= button_to "Upgrade to #{Plan.paid.name} for #{ format_currency(Plan.paid.price) }/month", account_subscription_path, class: "btn settings-subscription__button txt-medium", form: { data: { turbo: false } } %>
Cancel anytime, no contracts, take your data with you whenever.