% filter_params = params.permit(Submissions::Filter::ALLOWED_PARAMS).compact_blank %>
<%= link_to root_path, class: 'flex items-center mb-1 md:mb-0' do %>
<%= svg_icon('chevron_left', class: 'w-5 h-5') %>
<%= t('back_to_active') %>
<% end %>
<%= render 'submissions_filters/applied_filters', filter_params:, with_status: true %>
<%= render 'submissions_filters/filter_button', filter_params: %>
<% if @pagy.count.nil? || @pagy.count > 0 %>
<%= render partial: 'templates/submission', collection: @submissions, locals: { with_template: true, archived: true } %>
<% elsif params[:q].present? || filter_params.present? %>
<%= t('submissions_not_found') %>
<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'submissions' %>