{#
/**
* @var addClass string
* @var totalItemCount
* @var firstPageInRange
* @var pagesInRange array
* @var lastPageInRange
* @var showFirstLast bool
* @var fist
* @var last
* @var \Pimcore\Templating\PhpEngine view
* @var \Pimcore\Templating\GlobalVariables app
* @var Elements\Demi\Accommodation\Search\Parameter searchParam
*/ #}
{% set currentPage = app.getRequest().get('page', 1) %}
{% set randSeed = searchParam is instanceof('\\Elements\\Demi\\Accommodation\\Search\\Parameter') ? searchParam.getOrderRandSeed() : 1 %}
{% set showFirstLast = true %}
{% if pageCount > 1 %}
<div class="container">
<div class="row align-items-center">
<div class="col">
{% if previous is defined %}
{% do pimcore_placeholder('headPrev').set('<link rel="prev" href="' ~ pimcore_url({'page' : previous, 'randSeed' : randSeed}, null) ~ '">') %}
<a href="{{ pimcore_url({'page' : previous, 'randSeed' : randSeed}) }}"
class="btn btn-link js-acco-list__set-page" data-page="{{ previous }}" rel="prev">
{{ 'demi.paging.back' | trans }}
</a>
{% else %}
<a class="btn btn-default disabled">
{{ 'demi.paging.back' | trans }}
</a>
{% endif %}
</div>
<div class="col col-auto text-center">
{{ 'demi.paging.page'| trans }} {{ currentPage ~ "/" ~ pageCount }}
</div>
<div class="col text-right">
{% if next is defined %}
{% do pimcore_placeholder('headNext').set('<link rel="next" href="' ~ pimcore_url({'page' : next, 'randSeed' : randSeed}) ~ '">') %}
<a href="{{ pimcore_url({'page' : next, 'randSeed' : randSeed}) }}"
class="btn btn-link js-acco-list__set-page" data-page="{{ next }}" rel="next">
{{ 'demi.paging.forward' | trans }}
</a>
{% else %}
<a class="btn btn-default disabled">
{{ 'demi.paging.forward' | trans }}
</a>
{% endif %}
</div>
</div>
</div>
{% endif %}