<% content_for :title, "Kategorien" %> <% content_for :top_bar_actions do %> <%= link_to new_category_path, class: "py-2 px-4 text-sm font-semibold rounded-lg bg-blue-600 text-white hover:bg-blue-700 flex items-center gap-1.5 shadow-sm transition" do %> <% end %> <% end %>
<% if @categories.any? %>
<% @categories.each do |category| %>

<%= category.name %>

Gesamt: <%= category.items.count %>
<%= category.items_in_storage_count %>
<%= category.items_with_users_count %>
<%= category.items_in_rooms_count %>
<%= link_to category_path(category), class: "text-blue-600 hover:text-blue-700 transition" do %> Liste öffnen → <% end %> <%= link_to "Bearbeiten", edit_category_path(category), class: "text-gray-400 hover:text-gray-600 transition" %>
<% end %>
<% else %>

Bisher sind keine Kategorien hinterlegt.

<% end %>