<%= t(".title") %>
<% if allowed_to? :export, :budget %> <%= export_dropdown %> <% end %>
<%= link_to t("actions.new", scope: "decidim.budgets", name: t("models.budget.name", scope: "decidim.budgets.admin")), new_budget_path, class: "button tiny button--title" if allowed_to? :create, :budget %>

<%= th_resource_scope_label %> <% budgets.each do |budget| %> <%= td_resource_scope_for(budget.scope) %> <% end %>
<%= t("models.budget.fields.name", scope: "decidim.budgets") %> <%= t("models.budget.fields.total_budget", scope: "decidim.budgets") %> <%= t("models.budget.fields.projects_count", scope: "decidim.budgets") %><%= t("actions.title", scope: "decidim.budgets") %>
<%= link_to translated_attribute(budget.title), resource_locator(budget).path %> <%= number_to_currency budget.total_budget, unit: Decidim.currency_unit, precision: 0 %> <%= link_to budget.projects.count, budget_projects_path(budget) %> <%= icon_link_to "eye", resource_locator(budget).path, t("actions.preview", scope: "decidim.budgets"), class: "action-icon--preview", target: :blank %> <%= icon_link_to "list", budget_projects_path(budget), t("actions.edit_projects", scope: "decidim.budgets"), class: "action-icon--edit-projects" %> <% if allowed_to? :update, :budget, budget: budget %> <%= icon_link_to "pencil", edit_budget_path(budget), t("actions.edit", scope: "decidim.budgets"), class: "action-icon--edit" %> <% else %> <%= icon "pencil", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.edit", scope: "decidim.budgets") %> <% end %> <% if allowed_to? :delete, :budget, budget: budget %> <%= icon_link_to "circle-x", budget_path(budget), t("actions.destroy", scope: "decidim.budgets"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.budgets") } %> <% else %> <%= icon "circle-x", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.destroy", scope: "decidim.budgets") %> <% end %>
<%= t ".finished_orders" %>: <%= finished_orders.count %>  |  <%= t ".pending_orders" %>: <%= pending_orders.count %>  |  <%= t ".users_with_finished_orders" %>: <%= users_with_finished_orders.count %>  |  <%= t ".users_with_pending_orders" %>: <%= users_with_pending_orders.count %>