{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<div class="mb-6 mt-8 sm:flex">
    <p class="flex-shrink-0 block sm:inline">
        <vh:translate
            id="filters.results"
            package="Newland.Toubiz.Poi.Neos"
            source="Views/FilteredLists"/>:

        <span class="font-bold mr-1">
            <f:if condition="{pagination.count.items} <= {settings.itemsPerPage} && {pagination.count.items} <= 1">
                <f:then>
                    <f:comment><!-- 0 or 1 items existing on first page --></f:comment>
                    {pagination.count.items}
                </f:then>
                <f:else>
                    {pagination.currentPageFrom}-{pagination.currentPageTo}
                </f:else>
            </f:if>

            <f:comment><!-- only show if not 0 or 1 items are displayed --></f:comment>
            <f:if condition="{pagination.count.items} > 1">
                <f:then>
                    von {pagination.count.items}
                </f:then>
            </f:if>
        </span>
    </p>
</div>
