{{ __('Liste des tournois') }}

{{ __('Créer un tournoi') }}
 
@forelse($tournaments as $tournament) @php $nbParticipants = $tournament->participants->count(); $userIsParticipant = $tournament->participants->where('id', '=', Auth::id())->isNotEmpty(); $isCanceled = $tournament->isCanceled() && $userIsParticipant; @endphp $userIsParticipant, 'bg-red-300' => $isCanceled ]) > @if($tournament->organizer_id === \Illuminate\Support\Facades\Auth::id()) @endif @if($tournament->status->equals(\App\ModelStates\TournamentStatusStates\OpenTournament::class)) @endif @if($tournament->organizer_id === \Illuminate\Support\Facades\Auth::id() && $tournament->status->equals(\App\ModelStates\TournamentStatusStates\FullTournament::class)) @endif @empty @endforelse
{{ __('Nom') }} {{ __('Organisateur') }} {{ __('Nombre de Joueurs') }} {{ __('Prix d\'Entrée') }} {{ __('Elo Fléchettes') }} {{ __('Tournament type') }} {{ __('Type de Partie') }} {{ __('Status') }} {{ __('Date de Début') }} {{ __('Date de Fin') }} {{ __('Vainqueur') }}
{{ $tournament->name ?? "-" }} {{ $tournament->organizer->name ?? "" }} {{ $nbParticipants }} / {{ $tournament->number_of_players }} {{ $tournament->entrance_fee ?? "-" }} {{ $tournament->getEloRequired() }} {{ $tournament->type ?? "-" }} {{ $tournament->gameType->label ?? "-" }} {{ $tournament->status ?? "-" }} {{ $tournament->start_date ?? "-" }} {{ $tournament->end_date ?? "-"}} {{ $tournament->winner->name ?? "-"}} @php $data = json_encode(["id" => $tournament->id]); @endphp
@php $data = json_encode($tournament->id); @endphp

{{ __('Pas de tournois') }}

{{ $tournaments->links() }}