framework/views/frontend/content/index.blade.php
Toby Zerner 479e44dd04 Restructure views
- Use Laravel's view namespacing rather than the full file path
- Organise views into directories
2017-11-29 12:51:24 +10:30

21 lines
669 B
PHP

<?php
$url = app('Flarum\Forum\UrlGenerator');
?>
<div class="container">
<h2>{{ $translator->trans('core.views.index.all_discussions_heading') }}</h2>
<ul>
@foreach ($document->data as $discussion)
<li>
<a href="{{ $url->toRoute('discussion', [
'id' => $discussion->id . '-' . $discussion->attributes->slug
]) }}">
{{ $discussion->attributes->title }}
</a>
</li>
@endforeach
</ul>
<a href="{{ $url->toRoute('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} &raquo;</a>
</div>