@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
{{-- "Three Dots" Separator --}}
@if (is_string($element))
{{ $element }}
@endif
{{-- Array Of Links --}}
@if (is_array($element))
{{-- Loop through visible page numbers, adjust to show previous and next 3 pages --}}
@foreach ($element as $page => $url)
{{-- Show pages around the current page --}}
@if ($page >= $paginator->currentPage() - 3 && $page <= $paginator->currentPage() + 3)
@if ($page == $paginator->currentPage())