{% if paginationVariables is defined %}
<div class="flex items-center justify-between border-t border-gray-200 bg-white px-4 py-3 sm:px-6">
<div class="flex flex-1 justify-between sm:hidden">
{% if paginationVariables.previous is defined %}
<a href="{{ pimcore_url({'page': paginationVariables.previous}) }}" class="relative inline-flex items-center py-2 px-4 bg-gray-50 hover:bg-gray-100 text-sm font-medium text-gray-700 border border-gray-300 rounded-md">{{ 'Previous' | trans }}</a>
{% else %}
<div></div>
{% endif %}
{% if paginationVariables.next is defined %}
<a href="{{ pimcore_url({'page': paginationVariables.next}) }}" class="ml-3 relative inline-flex items-center py-2 px-4 bg-gray-50 hover:bg-gray-100 text-sm font-medium text-gray-700 border border-gray-300 rounded-md">{{ 'Next' | trans }}</a>
{% endif %}
</div>
<div class="hidden sm:flex sm:flex-1 sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
{{ ('pagination.showing')|trans }}
<span class="font-medium">{{ paginationVariables.firstItemNumber }}</span>
{{ ('pagination.to')|trans }}
<span class="font-medium">{{ paginationVariables.lastItemNumber }}</span>
{{ ('pagination.of')|trans }}
<span class="font-medium">{{ paginationVariables.totalCount }}</span>
{{ ('pagination.results')|trans }}
</p>
</div>
<div>
<nav class="isolate inline-flex -space-x-px rounded-md" aria-label="Pagination">
{% if paginationVariables.previous is defined %}
<a href="{{ pimcore_url({'page': paginationVariables.previous}) }}" class="relative inline-flex items-center py-2 px-2 hover:bg-gray-100 text-sm font-medium text-gray-500 rounded-md focus:z-20">
<span class="sr-only">{{ ('pagination.previous')|lower|trans }}</span>
<!-- Heroicon name: mini/chevron-left -->
<svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z" clip-rule="evenodd" />
</svg>
</a>
{% endif %}
{% for page in paginationVariables.pagesInRange %}
{% if paginationVariables.current == page %}
<a href="#" class="relative z-10 inline-flex items-center py-2 px-4 bg-brand-50 text-sm font-medium text-brand-600 border border-brand-500 rounded-md focus:z-20">{{ page }}</a>
{% else %}
<a href="{{ pimcore_url({'page': page}) }}" class="relative inline-flex items-center py-2 px-4 hover:bg-gray-50 text-sm font-medium text-gray-500 rounded-md focus:z-20">
{{ page }}
</a>
{% endif %}
{% endfor %}
{% if paginationVariables.next is defined %}
<a href="{{ pimcore_url({'page': paginationVariables.next}) }}" class="relative inline-flex items-center py-2 px-2 hover:bg-gray-100 text-sm font-medium text-gray-500 rounded-md focus:z-20">
<span class="sr-only">{{ 'Next' | trans }}</span>
<!-- Heroicon name: mini/chevron-right -->
<svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
</svg>
</a>
{% endif %}
</nav>
</div>
</div>
</div>
{% endif %}