<%= t(".categories") %>

<%= render DS::Menu.new do |menu| %> <% menu.with_item( variant: "button", text: "Delete all", href: destroy_all_categories_path, method: :delete, icon: "trash-2", confirm: CustomConfirm.for_resource_deletion("all categories", high_severity: true)) %> <% end %> <%= render DS::Link.new( text: t(".new"), variant: "primary", icon: "plus", href: new_category_path, frame: :modal ) %>
<% if @categories.any? %>
<% if @categories.incomes.any? %> <%= render "categories/category_list_group", title: t(".categories_incomes"), categories: @categories.incomes %> <% end %> <% if @categories.expenses.any? %> <%= render "categories/category_list_group", title: t(".categories_expenses"), categories: @categories.expenses %> <% end %>
<% else %>

<%= t(".empty") %>

<%= render DS::Button.new( text: t(".bootstrap"), href: bootstrap_categories_path, ) %> <%= render DS::Link.new( text: t(".new"), variant: "outline", icon: "plus", href: new_category_path, frame: :modal ) %>
<% end %>