data; $postsCount = count($discussion->relationships->posts->data); ?>

{{ $discussion->attributes->title }}

@foreach ($posts as $post)
relationships->user->data) ? $getResource($post->relationships->user->data) : null; ?>

{{ $user ? $user->attributes->username : $translator->trans('core.lib.username.deleted_text') }}

{!! $post->attributes->contentHtml !!}

@endforeach
@if ($page > 1) « {{ $translator->trans('core.views.discussion.previous_page_button') }} @endif @if ($page < $postsCount / 20) {{ $translator->trans('core.views.discussion.next_page_button') }} » @endif