<%= fa_icon("circle") %> <%= Archangel.t(:index_resource, resource: @collection.name) %>

<%= render "buttons" %>
<% if @entries.present? %> <%= paginate @entries %> <%- fields = @collection.fields.map { |item| item.slug } %>
<% fields.each do |field| %> <% end %> <% @entries.each do |entry| %> <% fields.each do |field| %> <% end %> <% end %>
 <%= field.titleize %><%= Archangel.t(:available_at) %> <%= Archangel.t(:actions) %>
<%= fa_icon("sort", title: Archangel.t(:sort)) %><%= entry.value[field] %><%= entry.available_at %> <%= link_to(fa_icon("info-circle", text: Archangel.t(:show)), backend_collection_entry_path(entry.collection, entry), class: "btn btn-info btn-sm") %> <%= link_to(fa_icon("check-circle", text: Archangel.t(:edit)), edit_backend_collection_entry_path(entry.collection, entry), class: "btn btn-warning btn-sm") %> <%= link_to(fa_icon("times-circle", text: Archangel.t(:destroy)), backend_collection_entry_path(entry.collection, entry), class: "btn btn-danger btn-sm", method: :delete, data: { confirm: Archangel.t(:are_you_sure) }) %>
<%= paginate @entries %> <% else %>

<%= Archangel.t(:no_resources, resources: @collection.name.pluralize.downcase) %>

<% end %>