mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-10 04:02:28 +01:00
26 lines
956 B
PHP
26 lines
956 B
PHP
@if (!$current_page)
|
|
<?php $current_page = 1; ?>
|
|
@endif
|
|
|
|
<ul class="pagination">
|
|
<li class='@if ($current_page-1 < $first_page) disabled @endif'>
|
|
<a id='scrollLeft-{{$pagination_id}}' href='{{route('admin')}}/admin?page={{$current_page - 1}}#{{$selection_name}}'>«</a>
|
|
</li>
|
|
|
|
@for ($i=$current_page-4;i<=$last_page;$i++)
|
|
@if (($current_page + $i) >= 4)
|
|
<?php return ?>
|
|
@endif
|
|
|
|
@if (($i >= $first_page) && ($i <= $last_page))
|
|
<li class='@if ($current_page == $i) active @endif'>
|
|
<a data-page='{{$i}}' href='{{route('admin')}}/admin?page={{$i}}#{{$selection_name}}'>{{$i}}</a>
|
|
</li>
|
|
@endif
|
|
@endfor
|
|
|
|
<li class='@if ($current_page+1 > $first_page) disabled @endif'>
|
|
<a id='scrollRight-{{$pagination_id}}' data-page='{{$page}}' href='{{route('admin')}}/admin?page={{$current_page + 1}}#{{$selection_name}}'>»</a>
|
|
</li>
|
|
</ul>
|