% content_for :title, t(".new_invitation") %>
<%= t(".new_invitation") %>
<%= form_with model: @invitation, url: admin_invitations_path, method: :post, class: "card card-body max-w-3xl space-y-5" do |f| %>
<%= f.errors_summary %>
<%= f.field :label, required: true, hint: t(".label_hint") %>
<%= f.field :email, as: :email, label: t(".email"), hint: t(".email_hint") %>
<%= f.field :name, label: t(".name"), hint: t(".name_hint") %>
<%= f.field :max_uses, as: :number, label: t(".max_uses"), hint: t(".max_uses_hint"), min: 1, max: 1000 %>
<%= f.field :expires_at, as: :datetime, label: t(".expires"), hint: t(".expires_hint") %>
<%= f.submit t(".create") %><%= link_to t(".cancel"), admin_invitations_path, class: "btn-secondary" %>
<% end %>