{# this page is related to: dev.startplatz.de/x/startup-tools/home #}
{% set currentPath = app.request.get('_route') %}
<div id="posts">
{% for batch in items|batch(6) %}
<div class="item">
<div class="row justify-content-center mx-auto">
{% for item in batch %}
<div class="col-12 col-md-6 col-lg-4">
{% include '@StartPlatzAlphaBundle/Benefit/StartupTools__widget.twig' %}
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
{% if maxPages is defined and maxPages > 1 %}
<div id="pagination">
<a href="{{ path(currentPath, {page: thisPage} ) }}">{{ thisPage }}</a>
{% if thisPage != maxPages %}
<a href="{{ path( currentPath, {page: thisPage+1 <= maxPages ? thisPage+1 : thisPage} + templateVars) }}" class="next">ยป</a>
{% endif %}
</div>
{% else %}
{% set maxPages = 100 %}
{% endif %}