@extends('layouts.app') @section('title', $thread->title . ' - 论坛') @section('content')

{{ $thread->title }}

{{ $thread->user?->name }} · {{ $thread->created_at->format('Y-m-d H:i') }} · {{ $thread->views }} 浏览

{!! nl2br(e($thread->body)) !!}
@if ($thread->is_locked)

该帖子已锁定,无法回复。

@endif

回复({{ $replies->total() }})

@forelse ($replies as $reply)
{{ $reply->user?->name }} · {{ $reply->created_at->format('Y-m-d H:i') }}
{!! nl2br(e($reply->body)) !!}
@empty

还没有回复。

@endforelse
{{ $replies->links('pagination::bootstrap-5') }}
@auth @unless ($thread->is_locked)

发表回复

@csrf
@endunless @else

登录 后参与回复。

@endauth
@endsection