@extends('layouts.app') @section('title', $thread->title) @section('content')
Forums / {{ $board->name }} / {{ \Illuminate\Support\Str::limit($thread->title, 30) }}

{{ $thread->title }}

Started by - {{ $thread->user->name }} {{ $thread->created_at->format('M d, Y') }} {{ $thread->view_count }} views @if($thread->is_locked) Locked @endif @if($thread->is_pinned) Pinned @endif
@auth @if(Auth::user()->can('moderate forums') || Auth::id() === $thread->user_id)
@if(Auth::user()->can('moderate forums')) @elseif(Auth::id() === $thread->user_id) Edit @endif
@endif @endauth
{{ $thread->user->name }}
@if($thread->user->isAdmin ?? false)
Admin
@elseif($thread->user->isModerator ?? false)
Moderator
@endif
Joined {{ $thread->user->created_at->format('M Y') }}
@sanitize((new \Golonka\BBCode\BBCodeParser)->parse($thread->content))
@foreach(App\Models\ForumReaction::getTypes() as $type => $emoji)
{{ $emoji }} {{ $thread->reactions()->where('type', $type)->count() }}
@endforeach

Replies

@forelse($posts as $post)
{{ $post->user->name }}
{{ $post->created_at->format('M d, Y g:i A') }} @if($post->is_edited) (edited {{ $post->edited_at->format('M d, Y') }}) @endif
@if($post->user->isAdmin ?? false)
Admin
@elseif($post->user->isModerator ?? false)
Moderator
@endif @auth @if(Auth::user()->can('moderate forums') || Auth::id() === $post->user_id)
Edit @if(Auth::user()->can('moderate forums'))
@csrf @method('DELETE')
@endif
@endif @endauth
@sanitize((new \Golonka\BBCode\BBCodeParser)->parse($post->content))
@foreach(App\Models\ForumReaction::getTypes() as $type => $emoji)
{{ $emoji }} {{ $post->getReactionCount($type) }}
@endforeach
@empty
No replies yet. Be the first to reply!
@endforelse
{{ $posts->links() }}
@if(!$thread->is_locked) @auth

Post a Reply

@csrf
@error('content')
{{ $message }}
@enderror
@else

You need to log in to reply to this thread.

@endauth @else

This thread is locked. No new replies can be posted.

@endif
@push('scripts') @endpush @endsection