@extends('layouts.app') @section('content')
Forum Index -> {{$forum->description}}
Results: {{ count($forum->topics()) }}
@if (count($forum->topics()) == 0) @endif @foreach ($forum->topics() as $i => $t) @php $class = $i % 2 === 0 ? 'evenrow' : 'oddrow'; @endphp @endforeach

{{$forum->description}}

Description
This Forum contains no topics
{{$t->name }}
{{$t->commentCount()}} Comments
{{ $t->owner()->name }} {{$t->created_at->format("m/d/Y g:i a")}} @if (auth()->id() == $t->owner()->id)
@csrf @method('DELETE')  
@endif
{{$forum->topics()->links()}}

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