@extends('layouts.app') @section('title', $game->name . ' Details') @section('content')
← Back to Games

{{ $game->name }}

Game details and statistics

Game Information

Platform:
{{ $game->platform }}
Slug:
{{ $game->slug }}
Created:
{{ $game->created_at->format('M j, Y g:i A') }}

Statistics

Total Challenges {{ $game->challenges->count() }}
Total Tournaments {{ $game->tournaments->count() }}
Total Players {{ $game->challenges->pluck('creator_id')->merge($game->challenges->pluck('accepter_id'))->unique()->count() }}

Recent Challenges

@forelse($game->challenges->take(10) as $challenge) @empty @endforelse
Creator Accepter Wager Status Created
{{ $challenge->creator->username }} {{ $challenge->accepter ? $challenge->accepter->username : 'Open' }} ₦{{ number_format($challenge->wager_amount, 2) }} {{ ucfirst($challenge->status) }} {{ $challenge->created_at->diffForHumans() }}
No challenges found

Recent Tournaments

@forelse($game->tournaments->take(10) as $tournament) @empty @endforelse
Title Host Entry Fee Participants Status Created
{{ $tournament->title }} {{ $tournament->host->username }} ₦{{ number_format($tournament->entry_fee, 2) }} {{ $tournament->participants->count() }} {{ ucfirst($tournament->status) }} {{ $tournament->created_at->diffForHumans() }}
No tournaments found
@endsection