@extends('layouts.default', [ 'title' => $thread->title, 'image' => $thread->creator->headshot() ]) @section('css') @endsection @section('content')

Forum

@if (!Auth::check() || (Auth::check() && (!$thread->is_locked || Auth::user()->isStaff() && $thread->is_locked))) Reply @else @endif
@if ($thread->is_deleted)
This thread is deleted.
@endif
@if ($thread->is_pinned) @endif @if ($thread->is_locked) @endif {{ $thread->title }}
@if ($thread->replies()->currentPage() == 1)
Poster
Body @if (Auth::check() && $thread->creator->id != Auth::user()->id && !$thread->creator->isStaff()) @endif
{{ $thread->creator->username }} @if ($thread->creator->is_verified) @endif
@if ($thread->creator->isStaff())
Admin
@elseif($thread->creator->hasMembership())
{{ config('site.membership_name') }}
@endif @if ($thread->creator->hasPrimaryGroup())
{{ $thread->creator->primaryGroup->name }}
{{ $thread->creator->rankInGroup($thread->creator->primaryGroup->id)->name }}
@endif
Level:
{{ $thread->creator->forum_level }}
{{ $thread->creator->forum_level }}
Posts:
{{ number_format($thread->creator->forumPostCount()) }}
{{ number_format($thread->creator->forumPostCount()) }}
Posted {{ $thread->created_at->diffForHumans() }}
{!! nl2br(e($thread->body)) !!}
@if ($thread->creator->forum_signature)
{{ $thread->creator->forum_signature }}
@endif @if (Auth::check() && Auth::user()->isStaff()) @if ( Auth::user()->staff('can_delete_forum_posts') || Auth::user()->staff('can_edit_forum_posts') || Auth::user()->staff('can_pin_forum_posts') || Auth::user()->staff('can_lock_forum_posts') ) {!! (!$thread->creator->forum_signature) ? '
' : '
' !!} @endif @if (Auth::user()->staff('can_delete_forum_posts')) @endif @if (Auth::user()->staff('can_edit_forum_posts')) @endif @if (Auth::user()->staff('can_pin_forum_posts')) @endif @if (Auth::user()->staff('can_lock_forum_posts')) @endif @endif
@endif @foreach ($thread->replies() as $reply)
Poster
Body @auth @if (!$thread->is_locked || (Auth::user()->isStaff() && $thread->is_locked)) @endif @if ($reply->creator->id != Auth::user()->id && !$reply->creator->isStaff()) @endif @endauth
{{ $reply->creator->username }} @if ($reply->creator->is_verified) @endif
@if ($reply->creator->isStaff())
Admin
@elseif($reply->creator->hasMembership())
{{ config('site.membership_name') }}
@endif @if ($reply->creator->hasPrimaryGroup())
{{ $reply->creator->primaryGroup->name }}
{{ $reply->creator->rankInGroup($reply->creator->primaryGroup->id)->name }}
@endif
Level:
{{ $reply->creator->forum_level }}
{{ $reply->creator->forum_level }}
Posts:
{{ number_format($reply->creator->forumPostCount()) }}
{{ number_format($reply->creator->forumPostCount()) }}
Posted {{ $reply->created_at->diffForHumans() }}
@if ($reply->quote_id && (!$reply->quote->is_deleted || (Auth::check() && Auth::user()->isStaff())))
{{ $reply->quote->created_at->diffForHumans() }}, {{ $reply->quote->creator->username }} wrote:
{!! nl2br(e($reply->quote->body)) !!}
@endif
{!! nl2br(e($reply->body)) !!}
@if ($reply->creator->forum_signature)
{{ $reply->creator->forum_signature }}
@endif @if (Auth::check() && Auth::user()->isStaff()) @if ( Auth::user()->staff('can_delete_forum_posts') || Auth::user()->staff('can_edit_forum_posts') ) {!! (!$reply->creator->forum_signature) ? '
' : '
' !!} @endif @if (Auth::user()->staff('can_delete_forum_posts')) @endif @if (Auth::user()->staff('can_edit_forum_posts')) @endif @endif
@endforeach
{{ $thread->replies()->onEachSide(1) }} @endsection