Blame view

resources/views/vendor/pagination/default.blade.php 1.12 KB
b7c7a5f6   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  <ul class="pagination pagination-sm no-margin">
      {{-- Previous Page Link --}}
      @if ($paginator->onFirstPage())
          <li class="disabled"><span>&laquo;</span></li>
      @else
          <li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">&laquo;</a></li>
      @endif
  
      {{-- Pagination Elements --}}
      @foreach ($elements as $element)
          {{-- "Three Dots" Separator --}}
          @if (is_string($element))
              <li class="disabled"><span>{{ $element }}</span></li>
          @endif
  
          {{-- Array Of Links --}}
          @if (is_array($element))
              @foreach ($element as $page => $url)
                  @if ($page == $paginator->currentPage())
                      <li class="active"><span>{{ $page }}</span></li>
                  @else
                      <li><a href="{{ $url }}">{{ $page }}</a></li>
                  @endif
              @endforeach
          @endif
      @endforeach
  
      {{-- Next Page Link --}}
      @if ($paginator->hasMorePages())
          <li><a href="{{ $paginator->nextPageUrl() }}" rel="next">&raquo;</a></li>
      @else
          <li class="disabled"><span>&raquo;</span></li>
      @endif
  </ul>