@extends('layouts.default', [ 'title' => $topic->name ]) @section('css') @endsection @section('content')

Forum

@include('web.forum._sidebar', ['mobile' => true])
@if ($topic->threads()->count() == 0)

There are no threads in this topic. Maybe create one?

@else
Post
Replies
Last Reply
@foreach ($topic->threads() as $thread)
is_deleted) style="opacity:.5;" @endif>
{{ $thread->title }}
@if ($thread->is_pinned) Pinned @elseif ($thread->is_locked) Locked @endif Posted by creator->isStaff()) class="text-danger" @endif>{{ $thread->creator->username }} - {{ $thread->created_at->diffForHumans() }}
{{ number_format($thread->replies(false)->count()) }}
@if ($thread->lastReply()) lastReply()->creator->isStaff()) class="text-danger" @endif>{{ $thread->lastReply()->creator->username }}
{{ $thread->lastReply()->created_at->diffForHumans() }}
@else creator->isStaff()) class="text-danger" @endif>{{ $thread->creator->username }}
{{ $thread->created_at->diffForHumans() }}
@endif
@endforeach
{{ $topic->threads()->onEachSide(1) }} @endif
@include('web.forum._sidebar', ['mobile' => false])
@endsection