@extends('layouts.app') @push('styles') @endpush @section('title',$tournament->name.' - GIGAX ARENA') @section('page_title','Torneios') @section('content') @if(session('success'))
{{session('success')}}
@endif @if(session('error'))
{{session('error')}}
@endif
@if(!empty($tournament->banner_url))
@endif
GIGAX ARENA • CAMPEONATO
{{$tournament->name}}
● {{strtoupper($tournament->status)}} 📅 {{\Carbon\Carbon::parse($tournament->start_date)->format('d/m/Y H:i')}} 👥 {{$tournament->registered_count}}/{{$tournament->max_teams}} TIMES 🎮 {{$tournament->game_mode}} 🏆 R$ {{number_format($tournament->prize_pool,2,',','.')}}
@if($tournament->description)

{{$tournament->description}}

@endif
{{-- GIGAX_TOURNAMENT_EDIT_BUTTON_V1 --}} @if($isTournamentAdmin)✎ EDITAR CAMPEONATO@endif @if($isTournamentAdmin && $tournament->status!=='finished')
@csrf
@endif
@php $pct = $tournament->max_teams > 0 ? min(100, round(($tournament->registered_count / $tournament->max_teams)*100)) : 0; $deadline = !empty($tournament->registration_end) ? \Carbon\Carbon::parse($tournament->registration_end) : null; @endphp @if($tournament->status === 'registration') @if($alreadyRegistered)
Sua inscrição
✓ SEU TIME ESTÁ INSCRITO
{{$spotsRemaining}}
Seu time já está confirmado neste campeonato. Agora acompanhe o encerramento das inscrições e a geração da chave.
@elseif($registrationExpired)
Inscrições encerradas
O PRAZO DE INSCRIÇÃO TERMINOU
Aguarde a organização iniciar o campeonato e publicar o chaveamento.
@elseif($spotsRemaining <= 0)
Lotado
TODAS AS VAGAS FORAM PREENCHIDAS
O campeonato atingiu {{$tournament->max_teams}} times inscritos.
@elseif($canRegister && $userTeam)
Inscrições abertas
INSCREVA SEU TIME AGORA
{{$spotsRemaining}}
Você é {{str_replace('-',' ', $userTeam->member_role ?? 'capitão')}} do time {{$userTeam->name}} e pode confirmar a inscrição.
@elseif($memberTeam)
Inscrições abertas
VOCÊ JÁ TEM UM TIME, MAS NÃO PODE INSCREVÊ-LO
A inscrição deve ser feita pelo capitão ou co-capitão do {{$memberTeam->name}}.
1
Avise o capitão/co-capitão do seu time.
2
Ele abre esta página e clica em INSCREVER MEU TIME.
@else
Inscrições abertas
VOCÊ PRECISA DE UM TIME PARA PARTICIPAR
Crie ou entre em um time. Depois, o capitão ou co-capitão poderá fazer a inscrição.
IR PARA TIMES
@endif @elseif($tournament->status === 'ongoing')
Campeonato iniciado
CHAVEAMENTO EM ANDAMENTO
Acompanhe abaixo os confrontos e resultados.
@elseif($tournament->status === 'finished')
Campeonato finalizado
EVENTO ENCERRADO
Confira a árvore completa e os resultados finais.
@endif
Participantes
TIMES INSCRITOS
@forelse($registeredTeams as $t)
[{{$t->team_tag}}] {{$t->team_name}}Capitão: {{$t->captain_name}}
@empty
Nenhum time inscrito ainda.
@endforelse
Chaveamento oficial
ÁRVORE DO TORNEIO
@if($matches->isEmpty())
A chave ainda não foi gerada. Quando houver pelo menos 2 times, o administrador poderá gerar a árvore automaticamente.
@else
@foreach($rounds->sortKeysDesc() as $roundNo=>$roundMatches)
@if($roundNo==1) FINAL @elseif($roundNo==2) SEMIFINAL @elseif($roundNo==3) QUARTAS DE FINAL @elseif($roundNo==4) OITAVAS DE FINAL @else FASE {{$roundNo}} @endif
@foreach($roundMatches as $m)
{{$m->team_a_name??'A definir'}}{{$m->score_a}}
{{$m->team_b_name??'A definir'}}{{$m->score_b}}
@if($isTournamentAdmin && $m->team_a_id && $m->team_b_id && $tournament->status!=='finished')
@csrf
@endif
@endforeach
@endforeach
@endif
← VOLTAR AOS TORNEIOS @push('scripts') @endpush @endsection