@extends('layouts.dashboard')
@section('title', $topic->title)
@section('page_title', $topic->title)
@section('content')
{{ $topic->title }}
@if($topic->status === 'closed')
{{ __('Closed') }}
@endif
{{-- Original post --}}
{{ $topic->user?->name ?? __('Unknown') }}
{{ $topic->created_at->diffForHumans() }}
{{ $topic->content }}
{{-- Replies --}}
{{ $topic->replies->count() }} {{ __('Replies') }}
@forelse($topic->replies as $reply)
{{ $reply->user?->name ?? __('Unknown') }}
{{ $reply->created_at->diffForHumans() }}
{{ $reply->reply }}
@empty
{{ __('No replies yet. Be the first to respond.') }}
@endforelse
{{-- Reply form --}}
@if($topic->status === 'closed')
{{ __('This topic is closed. No new replies can be posted.') }}
@else
@endif
@endsection