<%= t('submissions') %> <%= t('archived') %>
  
  
    <%= render 'shared/search_input' %>
    <%= 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') %>
      <%= t('export') %>
    <% end %>
  
 
<% if @pagy.count > 0 %>
  
    <%= render partial: 'templates/submission', collection: @submissions, locals: { template: @template, archived: true } %>
  
<% elsif params[:q].present? %>
  
    
      <%= t('submissions_not_found') %>
    
   
<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'submissions' %>