2017-06-22 17:00:09 +02:00
|
|
|
@extends('layouts.layout')
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
<section class="jumbotron text-center">
|
2017-08-01 13:35:34 +02:00
|
|
|
<div class="container">
|
2017-06-22 17:00:09 +02:00
|
|
|
|
|
|
|
|
@if ($activeSeason)
|
2017-06-26 17:21:30 +02:00
|
|
|
<label>Aktive Saison:{{ $activeSeason->name }}</label>
|
2017-06-22 17:00:09 +02:00
|
|
|
@endif
|
|
|
|
|
|
2017-08-01 13:35:34 +02:00
|
|
|
<p class="lead" style="font-size: 32px;">Tipps</p>
|
|
|
|
|
<p> </p>
|
2017-06-26 17:21:30 +02:00
|
|
|
|
2017-08-01 13:35:34 +02:00
|
|
|
</div>
|
|
|
|
|
<span class="container-fluid col-md-12">
|
2017-06-22 17:00:09 +02:00
|
|
|
@if ($activeSeason)
|
|
|
|
|
<div>
|
2017-06-26 17:21:30 +02:00
|
|
|
|
2017-08-04 16:51:28 +02:00
|
|
|
@foreach($rounds as $round)
|
2020-01-17 09:32:06 +01:00
|
|
|
|
2017-08-26 15:15:54 +02:00
|
|
|
<div><a class="text lead col-md-12" name="{{$round->id}}" style="font-size: 38px">{{ $round->name }} </a></div>
|
2017-08-28 16:34:19 +02:00
|
|
|
<div>Runde sperrt sich: {{$round->getLockTime()}}</div>
|
2020-01-17 09:32:06 +01:00
|
|
|
<div> </div>
|
|
|
|
|
<div>Bereits verwendete Joker: {{ App\Tipp::getJokerUsageString($user->id, $round->id) }} </div>
|
|
|
|
|
<div>Maximale Anzahl gleicher Joker: {{ $max_identical_jokertipps }}</div>
|
|
|
|
|
<div> </div>
|
2017-08-01 13:35:34 +02:00
|
|
|
|
|
|
|
|
<span class="col-md-12">
|
|
|
|
|
|
|
|
|
|
<span class="col-md-4"></span>
|
|
|
|
|
|
|
|
|
|
<span class="col-md-5">
|
|
|
|
|
<table class="table-bordered">
|
|
|
|
|
<tr class="table-bordered">
|
|
|
|
|
<td class="table-bordered">Spiel</td>
|
|
|
|
|
<td class="table-bordered">Anstoss</td>
|
|
|
|
|
<td class="table-bordered">Ergebnis</td>
|
|
|
|
|
|
|
|
|
|
<td class="table-bordered">Tipp</td>
|
|
|
|
|
<td class="table-bordered"> Joker </td>
|
|
|
|
|
<td class="table-bordered">Punkte</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
@foreach($round->games as $game)
|
2020-01-17 09:32:06 +01:00
|
|
|
|
2017-08-01 13:35:34 +02:00
|
|
|
<tr class="table-bordered">
|
|
|
|
|
<td class="table-bordered" style="width:600px;"><label class="text" href="/games/edit/{{ $game->id }}">{{ $game->team1 }} : {{ $game->team2 }}</label> </td>
|
|
|
|
|
<td class="table-bordered" style="width:600px;"><label class="text" > {{ App\User::toGermanDate($game->kickoff) }}</label></td>
|
|
|
|
|
|
2017-08-29 15:52:12 +02:00
|
|
|
<td class="table-bordered" style="width:350px;">{{ $game->hasResult() ? $game->score1 . ' : ' . $game->score2 : ' ' }}</td>
|
2017-08-01 13:35:34 +02:00
|
|
|
|
|
|
|
|
<td class="table-bordered" style="width:75px;">
|
2020-01-17 09:32:06 +01:00
|
|
|
|
|
|
|
|
<!-- <p>tipp_id: { { App\Tipp::getTipp($user->id,$game->id)->id </p> } } -->
|
|
|
|
|
|
2017-08-01 13:35:34 +02:00
|
|
|
@if(App\Round::hasLockedGame($round->id)==true)
|
|
|
|
|
<span>{{ App\Tipp::resultString(App\Tipp::getTipp( $user->id,$game->id)->id) }} </span>
|
|
|
|
|
@else
|
|
|
|
|
<a href="/tipps/edit/{{App\Tipp::getTipp($user->id,$game->id)->id}}">{{ App\Tipp::getTipp($user->id,$game->id)->score1== -1 ? 'Tippen': App\Tipp::resultString(App\Tipp::getTipp($user->id,$game->id)->id) }} </a>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
<td class="table-bordered"><img src="/img/joker.png" style="{{ (App\Tipp::getTipp($user->id,$game->id)->joker==true ? 'float:left;width:32px;height:32px' : 'display: none;') }}"></td>
|
|
|
|
|
<td class="table-bordered">{{App\Tipp::getScore(App\Tipp::getTipp($user->id,$game->id)->id)}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@endforeach
|
|
|
|
|
</table>
|
|
|
|
|
|
2020-12-30 10:13:34 +01:00
|
|
|
<!-- 4 in 1 functionality -->
|
2021-04-11 23:04:39 +02:00
|
|
|
|
|
|
|
|
@if(App\Round::hasLockedGame($round->id)!=true)
|
2023-01-27 21:05:03 +01:00
|
|
|
|
2020-12-30 10:13:34 +01:00
|
|
|
<a href="/tipps/edit4/{{$game->round_id}}">Runde Tippen</a>
|
2023-01-27 21:05:03 +01:00
|
|
|
|
2020-12-30 10:13:34 +01:00
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
|
2017-08-01 13:35:34 +02:00
|
|
|
</span>
|
|
|
|
|
</span>
|
2017-06-26 17:21:30 +02:00
|
|
|
<p> </p>
|
|
|
|
|
|
2017-06-22 17:00:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
2017-06-26 17:21:30 +02:00
|
|
|
|
2017-08-01 13:35:34 +02:00
|
|
|
</span>
|
2017-06-22 17:00:09 +02:00
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
@endsection
|