<%= link_to root_path do %>
    ←
    Back to Active
  <% end %>
  
    
Submissions Archived
  
  <% if params[:q].present? || @pagy.pages > 1 %>
    <%= render 'shared/search_input', placeholder: 'Search...' %>
  <% end %>
 
<% if @pagy.count > 0 %>
  
    <%= render partial: 'templates/submission', collection: @submissions, locals: { with_template: true, archived: true } %>
  
<% elsif params[:q].present? %>
  
<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'submissions' %>