@extends('frontend.Default.layouts.app') @section('page-title', $tournament->name) @section('content') @php if(Auth::check()){ $currency = auth()->user()->present()->shop ? auth()->user()->present()->shop->currency : ''; } else{ $currency = ''; } @endphp
@include('frontend.Default.partials.header')

{{ $tournament->name }}

Prize fund: {{ number_format($tournament->sum_prizes, 2,".","") }} {{ $currency }}

description

@php echo htmlspecialchars_decode($tournament->description); @endphp

  • Status: @if( $tournament->is_waiting() ) waiting @elseif( $tournament->is_completed() ) Completed @else Active @endif
  • Date of beginning: {{ $tournament->start }}
  • Date of ending: {{ $tournament->end }}
  • Type of tournament: {{ \VanguardLTE\Tournament::$values['type'][$tournament->type] }}
  • minimal bet: {{ $tournament->bet }}
  • spins for qualification: {{ $tournament->spins }}

Leaders

Login points prize
@if( count($tournament->stats) ) @php $index=1; @endphp @foreach($tournament->get_stats(0, 5, true) AS $stat)
{{ $index }}
{{ $stat['username'] }}
{{ $stat['points'] }}
{{ $stat['prize'] }}
@php $index++; @endphp @endforeach @else
@lang('app.no_data')
@endif
Login points prize
@if( count($tournament->stats) > 5 ) @php $index=6; @endphp @foreach($tournament->get_stats(5, 5, true) AS $stat)
{{ $index }}
{{ $stat['username'] }}
{{ $stat['points'] }}
{{ $stat['prize'] }}
@php $index++; @endphp @endforeach @else
@lang('app.no_data')
@endif

YOUR PLACE IN THE RATINGS: {{ $tournament->my_place() ?: '---' }}

GAMES TAKING PART IN THE TOURNAMENT

@if( $tournament->games ) @foreach ($tournament->games as $key=>$game) @if($game = $game->game) @include('frontend.Default.partials.game') @endif @endforeach @endif
@endsection @section('footer') @include('frontend.Default.partials.footer') @endsection @section('scripts') @include('frontend.Default.partials.scripts') @endsection