@extends('layouts.app') @section('content')

{{ $thread->name }}
@if(auth()->check()) New topic @endif

{{ $thread->description }}
@if($topics->count())
Topic Name / Author
Stats
Last post
@foreach($topics as $topic)
{{ $topic->name }}
Created by {{ $topic->author->name ?? 'Unknown User' }} {{ $topic->created_at ? $topic->created_at->diffForHumans() : 'N/A' }}
{{ $topic->views_no }}
{{ $topic->replies_no }}
{{ $topic->updated_at ? $topic->updated_at->diffForHumans() : 'N/A' }}
@if(!$loop->last)
@endif @endforeach @else

There are no topics at the moment!

Create the first topic
@endif
{{ $topics->links() }}
Thread Stats
  • Topics: {{ $topics->total() }}
  • Created: {{ $thread->created_at ? $thread->created_at->diffForHumans() : 'N/A' }}
@endsection