@php
$links = $paginator->toArray()['links'];
// To get rid of the "previous" and "next" links
array_shift($links);
array_pop($links);
@endphp
@foreach($links as $link)
@if($link['active'])
@elseif($link['label'] === '...')
{{ $link['label'] }}
@else
@endif
@endforeach