{# default Sliding pagination control implementation #}
{% if pageCount > 1 %}
<nav class="mt-7">
<ul class="pagination justify-content-center">
{% if first is defined and current != first %}
<li class="page-item">
<a href="{{ path(route, query|merge({(pageParameterName): first})) }}" class="page-link"><span class="fa fa-angle-double-left"></span></a>
</li>
{% endif %}
{% if previous is defined %}
<li class="page-item">
<a href="{{ path(route, query|merge({(pageParameterName): previous})) }}" class="page-link"><span class="fa fa-angle-left"></span></a>
</li>
{% endif %}
{% for page in pagesInRange %}
{% if page != current %}
<li class="page-item">
<a href="{{ path(route, query|merge({(pageParameterName): page})) }}" class="page-link">{{ page }}</a>
</li>
{% else %}
<li class="page-item active"><a class="page-link" href="#">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% if next is defined %}
<li class="page-item">
<a href="{{ path(route, query|merge({(pageParameterName): next})) }}" class="page-link"><span class="fa fa-angle-right"></span></a>
</li>
{% endif %}
{% if last is defined and current != last %}
<li class="page-item">
<a href="{{ path(route, query|merge({(pageParameterName): last})) }}" class="page-link"><span class="fa fa-angle-double-right"></span></a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}