{!! Form::select('type', \VanguardLTE\Tournament::$values['type'], $edit ? $tournament->type : old('type'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
@php $bets = array_combine(\VanguardLTE\Tournament::$values['bet'], \VanguardLTE\Tournament::$values['bet']); @endphp {!! Form::select('bet', $bets, $edit ? $tournament->bet : old('bet'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
@php $spins = array_combine(\VanguardLTE\Tournament::$values['spins'], \VanguardLTE\Tournament::$values['spins']); @endphp {!! Form::select('spins', $spins, $edit ? $tournament->spins : old('spins'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
{!! Form::select('games[]', $games, ($edit && $tournament->games_selected) ? $gams : old('games'), ['id' => 'games', 'class' => 'form-control select2', 'multiple' => 'multiple', 'style' => 'width: 100%;', 'disabled' => $denied ? true:false]) !!}
@php $bots = array_combine(\VanguardLTE\Tournament::$values['bots'], \VanguardLTE\Tournament::$values['bots']); @endphp {!! Form::select('bots', $bots, $edit ? $tournament->bots : old('bots'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
@php $bots_time = array_combine(\VanguardLTE\Tournament::$values['bots_time'], \VanguardLTE\Tournament::$values['bots_time']); @endphp {!! Form::select('bots_time', $bots_time, $edit ? $tournament->bots_time : old('bots_time'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
{!! Form::select('bots_step', \VanguardLTE\Tournament::$values['bots_step'], $edit ? $tournament->bots_step : old('bots_step'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
@php $bots_limit = array_combine(\VanguardLTE\Tournament::$values['bots_limit'], \VanguardLTE\Tournament::$values['bots_limit']); @endphp {!! Form::select('bots_limit', $bots_limit, $edit ? $tournament->bots_limit : old('bots'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
{!! Form::select('wager', \VanguardLTE\Tournament::$values['wager'], $edit ? $tournament->wager : old('wager'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
@if($edit && $tournament->image != '') @endif
@php $repeat_days = array_combine(\VanguardLTE\Tournament::$values['repeat_days'], \VanguardLTE\Tournament::$values['repeat_days']); @endphp {!! Form::select('repeat_days', ['' => '---'] + $repeat_days, $edit ? $tournament->repeat_days : old('repeat_days'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
@php $repeat_number = array_combine(\VanguardLTE\Tournament::$values['repeat_number'], \VanguardLTE\Tournament::$values['repeat_number']); @endphp {!! Form::select('repeat_number', ['' => '---'] + $repeat_number, $edit ? $tournament->repeat_number : old('repeat_number'), ['class' => 'form-control', 'disabled' => $denied ? true:false]) !!}
@php $count = 0; @endphp @if(old('prize')) @foreach(old('prize') AS $prize) @php $count++; @endphp
@endforeach @else @if($edit) @if($tournament->prizes ) @foreach($tournament->prizes AS $prize) @php $count++; @endphp
@endforeach @endif @endif @endif @if($count < 10) @for($i=0; $i<(10-$count); $i++)
@endfor @endif