%= render 'templates/title', template: @template %>
  <%= link_to template_path(@template) do %>
    ←
    Back to Active
  <% end %>
  Submissions Archived
  
    <% if params[:q].present? || @pagy.pages > 1 %>
      <%= render 'shared/search_input' %>
    <% end %>
    <%= link_to new_template_submissions_export_path(@template), class: 'order-3 md:order-1 btn btn-ghost text-base', data: { turbo_frame: 'modal' } do %>
      <%= svg_icon('download', class: 'w-6 h-6 stroke-2') %>
      Export
    <% end %>
  
 
<% if @pagy.count > 0 %>
  
    <%= render partial: 'templates/submission', collection: @submissions, locals: { template: @template, archived: true } %>
  
<% elsif params[:q].present? %>
  
<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'submissions' %>