18 lines
811 B
PHP
18 lines
811 B
PHP
<div class="row videonavigation">
|
|
@if(($prev = $video->getPrev()) === null)
|
|
<div class="col"><a class="first" href="#" style="visibility: hidden;">🡄 first</a></div>
|
|
|
|
@else
|
|
<div class="col"><a class="first" href="{{url($video->getFirstId())}}">🡄 first</a></div>
|
|
<div class="col"><a id="prev" href="{{url($prev->id)}}">🡄 prev</a> |
|
|
@endif
|
|
<a href="{{url('/')}}">random</a>
|
|
@if(($next = $video->getNext()) === null)
|
|
| <a id="next" href="#" style="visibility: hidden;">next 🡆</a>
|
|
<a class="last" href="#" style="visibility: hidden;">last 🡆</a>
|
|
@else
|
|
| <a id="next" href="{{url($next->id)}}">next 🡆</a></div>
|
|
<div class="col"><a class="last" href="{{url($video->getLastId())}}">last 🡆</a></div>
|
|
@endif
|
|
|
|
</div> |