
<ul>
    @if ($paginator->onFirstPage())
        <li aria-disabled="false"><a class="disabled"><i class="ti-angle-left"></i></a></li>
    @else
        <li><a href="{{ $paginator->previousPageUrl() }}" class="enabled"> <i class="ti-angle-left"></i> </a></li>
    @endif
    @foreach ($elements as $element)
                        {{-- "Three Dots" Separator --}}
                        @if (is_string($element))
                            <span aria-disabled="true">
                                <span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5">{{ $element }}</span>
                            </span>
                        @endif

                        {{-- Array Of Links --}}
                        @if (is_array($element))
                            @foreach ($element as $page => $url)
                                @if ($page == $paginator->currentPage())
                                <li><a href="{{$url}}" class="active"><span>{{ $page }}</span></a></li>
                                @else
                                <li><a href="{{$url}}" class="enabled"><span>{{ $page }}</span></a></li>
                                @endif
                            @endforeach
                        @endif
                    @endforeach
    @if ($paginator->hasMorePages())
        <li><a href="{{ $paginator->nextPageUrl() }}" class="enabled"> <i class="ti-angle-right"></i> </a></li>
    @else
        <li aria-disabled="true"><a class="disabled"><i class="ti-angle-right"></i></a></li>
    @endif
</ul>
