View file resources/views/forums/_pagination.blade.php
<div>Страницы: @foreach ($pages as $page) @if (isset($page['separator'])) <span>{{ $page['name'] }}</span> @else <a href="{{ $link }}?page={{ $page['page'] }}">{{ $page['name'] }}</a> @endif @endforeach </div>