@if ($paginator->hasPages())
<ul>
  @if ($paginator->onFirstPage())
  <li class="thisclass">首页</li>
  @else
  <li><a href="{{ $paginator->previousPageUrl() }}">上一页</a></li>
  @endif
  @foreach ($elements as $element)
  {{-- "Three Dots" Separator --}}
  @if (is_string($element))
  <li class="thisclass">{{ $element }}</li>
  @endif
  {{-- Array Of Links --}}
  @if (is_array($element))
  @foreach ($element as $page => $url)
  @if ($page == $paginator->currentPage())
  <li class="thisclass">{{ $page }}</li>
  @else
  <li><a href="{{ $url }}">{{ $page }}</a></li>
  @endif
  @endforeach
  @endif
  @endforeach
  @if ($paginator->hasMorePages())
  <li><a href="{{ $paginator->nextPageUrl() }}">下一页</a></li>
  @else
  <li><i class="fa fa-arrow-right"></i></li>
  @endif
</ul>
@endif
