<% if browse_group_categories_block.groups? %> <% browse_group_categories_block.groups.each do |group| %>

<%= group.title %>

<%= link_to t(:'.view_all'), exhibit_browse_groups_path(current_exhibit, group) %>
<% if group.searches.count > 1 %> <% end %>
<% group.searches.published.each_with_index do |search, index| %>
<%= link_to spotlight.exhibit_browse_group_path(current_exhibit, group, search), class: 'justify-content-center' do %>

<%= search.title %> <% if search.subtitle.present? %><%= search.subtitle %><% end %>

<% if browse_group_categories_block.display_item_counts? %> <%= t(:'.items', count: search.count) %> <% end %>
<% end %>
<% end %>
<% end %> <% end %>