<% content_for :title, "Dashboard" %>

Gesamtbestand

Registrierte Unikate

<%= Item.count %>

Kategorien

Geräte-Typen

<%= Category.count %>

Räume & Büros

Erfasste Standorte

<%= Room.count %>

Zuletzt hinzugefügt

<% @recent_items.each do |item| %> <% end %>
<%= link_to item_path(item), class: "shrink-0 transition hover:scale-105 active:scale-95 block" do %> <%= render "layouts/badge", type: :sticker, label: "##{item.sticker_id}" %> <% end %>
<% if item.present? %> <%= link_to item_path(item), class: "font-bold text-gray-900 hover:text-blue-600 hover:underline inline leading-tight" do %> <%= item.name %> <%= item.category.name %> <% end %> <% else %> Gelöschter Artikel <% end %>
<%= render "layouts/badge", type: item.location_badge_type, label: item.location_badge_label(short_room: true) %>
<%= time_ago_in_words(item.created_at) %>

Letzte Aktivitäten

<% @recent_assignments.each do |log| %> <% end %>
<%= link_to item_path(log.item), class: "shrink-0 transition hover:scale-105 active:scale-95 block" do %> <%= render "layouts/badge", type: :sticker, label: "##{log.item.sticker_id}" %> <% end %>
<% if log.item.present? %> <%= link_to item_path(log.item), class: "font-bold text-gray-900 hover:text-blue-600 hover:underline inline leading-tight" do %> <%= log.item.name %> <%= log.item.category.name %> <% end %> <% else %> Gelöschter Artikel <% end %>
<%= render "layouts/badge", type: log.item.location_badge_type, label: log.item.location_badge_label(short_room: true) %>
<%= time_ago_in_words(log.assigned_at) %>