@extends('layouts.app') @section('title', 'Challenge Details') @section('content')
← Back to Challenges

Challenge #{{ $challenge->id }}

Challenge details and management

@if($challenge->status == 'accepted' || $challenge->status == 'disputed') @endif @if($challenge->status != 'completed' && $challenge->status != 'cancelled')
@csrf
@endif

Challenge Information

Game:
{{ $challenge->game->name }}
Platform:
{{ $challenge->game->platform }}
Format:
Best of {{ $challenge->best_of }}
Wager per Player:
₦{{ number_format($challenge->wager_amount, 2) }}
Rules:
{{ $challenge->rules_text }}
Total Prize Pool:
₦{{ number_format($challenge->getTotalEscrowAmount(), 2) }}
Winner Prize (after 5% fee):
₦{{ number_format($challenge->getTotalEscrowAmount() * 0.95, 2) }}

Challenge Status

{{ ucfirst($challenge->status) }}
@if($challenge->result)
Result
@if($challenge->result === 'creator_win') {{ $challenge->creator->username }} Wins @elseif($challenge->result === 'accepter_win') {{ $challenge->accepter->username }} Wins @else Draw @endif
@endif
Created
{{ $challenge->created_at->format('M j, Y g:i A') }}
Updated
{{ $challenge->updated_at->diffForHumans() }}

Challenge Creator

{{ substr($challenge->creator->username, 0, 1) }}

{{ $challenge->creator->username }}

Level {{ $challenge->creator->level }} • {{ $challenge->creator->xp }} XP

Email: {{ $challenge->creator->email }}
Wallet Balance: ₦{{ number_format($challenge->creator->wallet_balance, 2) }}
Status: {{ ucfirst($challenge->creator->status) }}

Challenge Accepter

@if($challenge->accepter)
{{ substr($challenge->accepter->username, 0, 1) }}

{{ $challenge->accepter->username }}

Level {{ $challenge->accepter->level }} • {{ $challenge->accepter->xp }} XP

Email: {{ $challenge->accepter->email }}
Wallet Balance: ₦{{ number_format($challenge->accepter->wallet_balance, 2) }}
Status: {{ ucfirst($challenge->accepter->status) }}
@else

Open Challenge

Waiting for someone to accept

@endif
@if($challenge->matchProofs->count() > 0)

Match Proofs

@foreach($challenge->matchProofs as $proof)

Submitted by {{ $proof->user->username }}

{{ $proof->created_at->format('M j, Y g:i A') }}

{{ ucfirst($proof->status) }}
@if($proof->screenshot_url) @endif @if($proof->description)

{{ $proof->description }}

@endif
@endforeach
@endif @if($challenge->dispute)

⚠️ Dispute Information

Opened by:
{{ $challenge->dispute->openedBy->username }}
Status: {{ ucfirst($challenge->dispute->status) }}
Reason:
{{ $challenge->dispute->reason }}
@endif
@if($challenge->status == 'accepted' || $challenge->status == 'disputed') @endif @endsection