{if isset($pagination.pages)}
	<div class="{$class}">
        {if isset($pagination.previousPage)}
			<a href="{$pagination.previousPage.url}">
				<svg fill="none" xmlns="http://www.w3.org/2000/svg">
					<use xlink:href="{$ASSETS_URL}/images/sprites/sprite.svg#arrow-left"></use>
				</svg>
			</a>
        {/if}

        {foreach from=$pagination.pages item=pageNum}
            {if $pageNum.num eq $page}
				<a class="active">{$pageNum.num}</a>
            {elseif $pageNum.num eq '...'}
				<a>...</a>
            {else}
				<a href="{$pageNum.url}">{$pageNum.num}</a>
            {/if}
        {/foreach}

        {if isset($pagination.nextPage)}
			<a href="{$pagination.nextPage.url}">
				<svg fill="none" xmlns="http://www.w3.org/2000/svg">
					<use xlink:href="{$ASSETS_URL}/images/sprites/sprite.svg#arrow-right"></use>
				</svg>
			</a>
        {/if}
	</div>
{/if}