{% sw_extends '@Storefront/storefront/component/pagination.html.twig' %}
{% block component_pagination_next %}
{% if isTop %}
{% if app.request.get('p') %}
{% set strona = app.request.get('p')+1 %}
{% else %}
{% set strona = 2 %}
{% endif %}
<a class="page-item{% if currentPage == totalPages %} disabled{% endif %}"
{% if currentPage < totalPages %}
href="?order={{ app.request.get('order') }}&{%
if app.request.get('max-price') %}max-price={{ app.request.get('max-price') }}&{% endif %}{%
if app.request.get('min-price') %}min-price={{ app.request.get('min-price') }}&{% endif %}p={{ strona }}{%
if app.request.get('product-status') %}&product-status={{ app.request.get('product-status') }}{% endif %}{%
if app.request.get('properties') %}&properties={{ app.request.get('properties') }}{% endif %}"
{% endif %}
data-action-link="true">
<label class="page-link" for="page-next">
{% block component_pagination_next_link %}
{{ parent() }}
{% endblock %}
</label>
</a>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}