<% is_visible = params[:menu_open] ? 'block' : 'none' %>
<% cache filters_cache_key('mobile') do %>
<%= Spree.t('plp.filter_by') %> <%= inline_svg_tag 'close.svg', id: 'filter-by-overlay-hide-button' %>
<% available_option_types.each do |option_type| %> <% option_type_name = option_type.filter_param %> <% ot_downcase_name = option_type_name.downcase %>
<%= option_type_name %> <%= icon(name: 'arrow-right', classes: 'spree-icon-arrow spree-icon-arrow-right mt-1 float-right arrow plp-overlay-card-header-arrow', width: 16, height: 16) %>
<%= render 'spree/shared/option_values', params_ot_downcase_name: params[ot_downcase_name], option_type: option_type, permitted_params: permitted_params, ot_downcase_name: ot_downcase_name %>
<% end %> <% available_properties.each do |property| %> <% if property.uniq_values.present? %> <% property_name = property.name %> <% collapsed = params.dig(:properties, property.filter_param).blank? %>
<% end %> <% end %>
<%= Spree.t('plp.price') %> <%= icon(name: 'arrow-right', classes: 'spree-icon-arrow spree-icon-arrow-right mt-1 float-right arrow plp-overlay-card-header-arrow', width: 16, height: 16) %>
<% price_filters.each do |price_range| %> <%= price_filter_link(price_range, permitted_params) %> <% end %>
<%= min_price_filter_input class: 'w-50 p-2 mr-1' %> <%= max_price_filter_input class: 'w-50 p-2' %>
<% additional_filters_partials.each do |partial| %> <%= render "spree/products/filters/mobile/#{partial}", permitted_params: permitted_params %> <% end %>
<% end %>
<%= clear_all_filters_link(permitted_params) %> <%= link_to Spree.t('plp.done'), permitted_params, id: 'filterProductsButtonMobile', class: 'btn btn-primary spree-btn w-100 done-btn', data: { params: permitted_params } %>