#sort
  .pagination-description
    - if pagy.present?
      = t(".pagination.products_total_html", count: pagy.count, from: pagy.from, to: pagy.to)

    - if search_term.present? || producer_id.present? || category_id.present?
      %a{ href: url_for(page: 1), class: "button disruptive", data: { 'turbo-frame': "_self", 'turbo-action': "advance" } }
        = t(".pagination.clear_search")

  %form.with-dropdown
    = t(".pagination.per_page.show")
    = select_tag :per_page,
        options_for_select([15, 25, 50, 100].collect{|i| [t('.pagination.per_page.per_page', num: i), i]}, pagy&.items),
        class: "no-input per-page",
        data: { controller: "tom-select search", action: "change->search#changePerPage", "tom-select-options-value": '{ "plugins": [] }'}

  / Columns dropdown
  = render partial: "admin/column_preferences/form", locals: { action: "products_v3_index" }
