<% provide(:page_title, @model.collection_name) -%>
<%= render 'adminpanel/shared/new_resource_button' %>
<%= content_tag(:i, nil, class: "fa fa-#{@model.icon}") %>
<%= @model.collection_name %>
<% @model.display_attributes('index').each do |fields| %> <% fields.each do |attribute, properties| %> <% end %> <% end %> <% if @model.is_sortable? %> <% end %> <% if @collection != [] %> <% last_update = @collection.max_by(&:updated_at).updated_at %> <% end %> <% cache ["#{@model.name}-collection", last_update], skip_digest: true do %> <%= render 'adminpanel/shared/index_records', collection: @collection %> <% end %>
<%= properties['label'] %> <%= I18n.t('position') %> <%= I18n.t('actions') %>