@extends('layouts.app') @section('title', 'Forum') @section('content')

Forums

Discuss gameplay, get help, and connect with other players

{{ \App\Models\ForumThread::count() }}
Total Threads
{{ \App\Models\ForumPost::count() }}
Total Replies
{{ \App\Models\User::count() }}
Community Members
@forelse($categories as $category) {{-- Only show categories the user can access --}} @if($category->canAccess())

{{ $category->name }}

@if($category->description)

{{ $category->description }}

@endif {{-- Show access indicator for restricted categories --}} @if(!$category->is_public)
Restricted Access
@endif
{{-- Use accessibleBoards instead of boards --}} @forelse($category->accessibleBoards as $board) {{-- Double-check board access (defensive programming) --}} @if($board->canAccess())
{{-- Show different icon for restricted boards --}} @if(!$board->is_public) @else @endif

{{ $board->name }} {{-- Show access indicator for restricted boards --}} @if(!$board->is_public) 🔒 @endif

{{ $board->description }}

{{ $board->threadCount() }} Threads
{{ $board->postCount() }} Posts
@if($latestThread = $board->latestThreads()->first())
by {{ $latestThread->user->name }} • {{ $latestThread->created_at->diffForHumans() }}
@else
No threads yet
@endif
@endif @empty

No accessible boards

You don't have permission to view boards in this category.

@endforelse
@endif @empty

No Forums Available

Access Restricted

@auth You don't have permission to view any forum categories. Contact an administrator if you believe this is an error. @else Login to access forum discussions. @endauth

@endforelse {{-- Show helpful message for guests --}} @guest

🔐 Join the Community

Some forum areas may require Steam login to access. Sign in to see all available discussions!

@endguest
@endsection