photo/resources/views/components/pagination/nav.blade.php

13 lines
405 B
PHP

<ul class="pagination">
<li class="page-item @disabled(! $x=$o->previous())">
<a class="page-link" href="{{ $x ? url($pre.'/info',$x->id) : '#' }}">&lt;&lt;</a>
</li>
<li class="page-item active">
<span class="page-link">{{ $o->id }}</span>
</li>
<li class="page-item @disabled(! $x=$o->next())">
<a class="page-link" href="{{ $x ? url($pre.'/info',$x->id) : '#' }}">&gt;&gt;</a>
</li>
</ul>