<div class="hstack gap-2">
    @if ($paginator->hasPages())
        @foreach ($elements as $element)
            @if (is_array($element))
                @foreach ($element as $page => $url)
                    @if ($page == $paginator->currentPage())
                        <a href="#" wire:key="paginator-{{ $paginator->getPageName() }}-page-{{ $page }}"
                            class="btn btn-primary border btn-lg rounded-4">
                            {{ $page }}
                        </a>
                    @else
                        <a href="#" wire:click="gotoPage({{ $page }})"
                            class="btn bg-white border btn-lg rounded-4">
                            {{ $page }}
                        </a>
                    @endif
                @endforeach
            @endif
        @endforeach
    @endif
</div>
