@extends('layouts.app') @section('title', 'Tournament Participants') @section('content')
← Back to Tournaments

{{ $tournament->title }}

Manage tournament participants

{{ $tournament->game->name }}
Game
₦{{ number_format($tournament->entry_fee, 2) }}
Entry Fee
{{ $participants->count() }}
Participants
{{ ucfirst($tournament->status) }}
Status
@if($tournament->status === 'upcoming')
@if($participants->count() >= 2)
@csrf
@else
Need at least 2 participants to start
@endif
@elseif($tournament->status === 'ongoing')
@csrf
@endif

Current Participants

@if($participants->count() > 0)
@foreach($participants as $participant)
{{ substr($participant->user->username, 0, 1) }}
{{ $participant->user->username }}
Seed #{{ $participant->seed }} • Level {{ $participant->user->level }}
@if($tournament->status === 'upcoming')
@csrf @method('DELETE')
@else @if($participant->result) {{ ucfirst(str_replace('_', ' ', $participant->result)) }} @else Playing @endif @endif
@endforeach
@else

No participants yet

@endif
@if($tournament->status === 'upcoming')

Add Participants

@if($availableUsers->count() > 0)
@csrf

💡 Selection Criteria

  • • Users must have sufficient balance (₦{{ number_format($tournament->entry_fee, 2) }})
  • • Users cannot already be participating
  • • Entry fee will be automatically deducted
@else

No eligible users available

All users either lack sufficient balance or are already participating

@endif
@endif
@endsection