<%# locals: (club:, quote:, return_to: nil) %>

<%= t("admin.quote.title") %>

<%= t("admin.quote.description") %>

<% if quote %>

<%= raw t("admin.quote.active_html", plan: quote.plan.name, interval: t("admin.quote.interval_#{quote.billing_interval}"), amount: quote.formatted_amount) %> <% if quote.note.present? %>
<%= t("admin.quote.note_label") %> <%= quote.note %> <% end %>

<% else %>

<%= t("admin.quote.none") %>

<% end %> <%= form_with url: set_quote_admin_club_path(club), method: :post, local: true do %> <%= hidden_field_tag :return_to, return_to if return_to.present? %>
<%= submit_tag t("admin.quote.save_button"), class: "admin-btn admin-btn--primary" %>
<% end %> <% if quote %>
<%= button_to t("admin.quote.revoke_button"), revoke_quote_admin_club_path(club, return_to: return_to), method: :delete, class: "admin-btn admin-btn--secondary", form: { data: { turbo_confirm: t("admin.quote.revoke_confirm", club: club.name) } } %>
<% end %>