@if ($paginator->hasPages())
    <ul class="pagination pagination-style-01 fs-13 fw-500 mb-0">
        {{-- Previous Page Link --}}
        @if ($paginator->onFirstPage())
            <li class="page-item disabled" aria-disabled="true">
                <span class="page-link">
                    <i class="feather icon-feather-arrow-left fs-18 d-xs-none"></i>
                </span>
            </li>
        @else
            <li class="page-item">
                <a class="page-link" href="javascript:void(0)" wire:click="previousPage" rel="prev">
                    <i class="feather icon-feather-arrow-left fs-18 d-xs-none"></i>
                </a>
            </li>
        @endif

        {{-- Pagination Elements --}}
        @foreach ($elements as $element)
            {{-- "Three Dots" Separator --}}
            @if (is_string($element))
                <li class="page-item disabled" aria-disabled="true"><span class="page-link">{{ $element }}</span>
                </li>
            @endif

            {{-- Array Of Links --}}
            @if (is_array($element))
                @foreach ($element as $page => $url)
                    @if ($page == $paginator->currentPage())
                        <li class="page-item active" aria-current="page"><span
                                class="page-link">{{ sprintf('%02d', $page) }}</span></li>
                    @else
                        <li class="page-item">
                            <a class="page-link" href="javascript:void(0)"
                                wire:click="gotoPage({{ $page }})">{{ sprintf('%02d', $page) }}</a>
                        </li>
                    @endif
                @endforeach
            @endif
        @endforeach

        {{-- Next Page Link --}}
        @if ($paginator->hasMorePages())
            <li class="page-item">
                <a class="page-link" href="javascript:void(0)" wire:click="nextPage" rel="next">
                    <i class="feather icon-feather-arrow-right fs-18 d-xs-none"></i>
                </a>
            </li>
        @else
            <li class="page-item disabled" aria-disabled="true">
                <span class="page-link">
                    <i class="feather icon-feather-arrow-right fs-18 d-xs-none"></i>
                </span>
            </li>
        @endif
    </ul>
@endif
