65 lines
No EOL
3 KiB
PHP
65 lines
No EOL
3 KiB
PHP
@extends('layouts.layout')
|
|
|
|
@section('content')
|
|
<section class="jumbotron text-center">
|
|
<div class="container" style="float:left; width:800px">
|
|
|
|
@if ($activeSeason)
|
|
<label>Aktive Saison:{{ $activeSeason->name }}</label>
|
|
@endif
|
|
|
|
<p class="lead">Tipps</p>
|
|
|
|
|
|
@if ($activeSeason)
|
|
<div>
|
|
|
|
@foreach($rounds->reverse() as $round)
|
|
|
|
<div><label class="text lead">{{ $round->name }} </label></div>
|
|
<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)
|
|
<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>
|
|
|
|
<td class="table-bordered" style="width:350px;">{{ App\Game::has_result($game->id)==true ? $game->score1 . ' : ' . $game->score2 : ' Tippen ' }}</td>
|
|
|
|
<td class="table-bordered" style="width:75px;">
|
|
|
|
@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>
|
|
<p> </p>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</div>
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</section>
|
|
@endsection |