<% budget.groups.each do |group| %>

<%= group.name %>

<%= action(:edit, group, "aria-label": true) %> <%= action(:destroy, group, confirm: true, "aria-label": true) %> <%= action(:new, group, text: t("admin.budgets.show.add_heading"), path: new_admin_budget_group_heading_path(budget, group), "aria-label": true) %>
<% if group.multiple_headings? %>
<%= Budget::Group.human_attribute_name(:max_votable_headings) %>
<%= group.max_votable_headings %>
<% end %> <%= render Admin::BudgetHeadings::HeadingsComponent.new(group.headings) %>
<% end %> <%= action(:new, budget, text: t("admin.budgets.show.add_group"), path: new_admin_budget_group_path(budget)) %>