@extends('layouts.app') @section('content')
Forum Index -> {{$topic->forum()->first()->description}} -> {{$topic->name}}
@if (count($topic->comments()) == 0) @endif @foreach ($topic->comments() as $c) @endforeach
{{$topic->name}} {{$topic->description}}
This Topic contains no comments
Posted by {{$c->owner()->name}}, {{$c->created_at->format("m/d/Y g:i a")}}
@if (auth()->id() == $c->owner()->id)
@csrf @method('DELETE')   
@endif
{{$c->description}}
{{$topic->comments()->links()}}

@if (! auth()->id() == NULL)
Add a comment
@if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif
@csrf
@endif
@endsection