@extends('frontend.layout.master') @section('title', $forum->name) @section('content')

{{ $forum->name }}

Threads
@foreach ($threads as $thread)

{{ $thread->title }}
by {{ $thread->user->name }} {{ $thread->created_at->diffForHumans() }}

{{ $thread->replies_count }}
Replies

45
Views

@forelse($thread->latest_reply as $reply)

by {{ $reply->user->name }}
{{ $reply->created_at->diffForHumans() }}

@empty

No Replies

@endforelse @endforeach
@if(Auth()->check())
Create a New Thread
{{ csrf_field() }}
@if ($errors->has('title'))
{{ $errors->first('title') }}
@endif
@if ($errors->has('body'))
{{ $errors->first('body') }}
@endif
@else

Please login to create a new thread. @endif

@endsection