2015-08-06 10:51:11 +08:00
|
|
|
<?php
|
2015-10-02 16:05:29 +08:00
|
|
|
$url = app('Flarum\Forum\UrlGenerator');
|
2015-08-06 10:51:11 +08:00
|
|
|
?>
|
|
|
|
<div class="container">
|
|
|
|
<h2>All Discussions</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
@foreach ($document->data as $discussion)
|
|
|
|
<li>
|
2015-10-02 16:05:29 +08:00
|
|
|
<a href="{{ $url->toRoute('discussion', [
|
2015-08-25 18:22:24 +08:00
|
|
|
'id' => $discussion->id . '-' . $discussion->attributes->title
|
2015-08-06 10:51:11 +08:00
|
|
|
]) }}">
|
|
|
|
{{ $discussion->attributes->title }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
|
2015-10-02 16:05:29 +08:00
|
|
|
<a href="{{ $url->toRoute('index') }}?page={{ $page + 1 }}">Next Page »</a>
|
2015-08-06 10:51:11 +08:00
|
|
|
</div>
|