First version almost done
This commit is contained in:
parent
b5c1f40a45
commit
7a33f5f889
14 changed files with 274 additions and 28 deletions
35
pfosten/resources/views/tipps/index.blade.php
Normal file
35
pfosten/resources/views/tipps/index.blade.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<section class="jumbotron text-center">
|
||||
<div class="container" style="float:left; width:800px">
|
||||
|
||||
@if ($activeSeason)
|
||||
<label>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>
|
||||
@foreach($round->games as $game)
|
||||
<img src="/img/joker.png" style="{{ (App\Tipp::getTipp($game->id, $user->id)->joker==true ? 'float:left;width:32px;height:32px' : 'display: none;') }}">
|
||||
|
||||
<div style="width:600px"><label class="text" href="/games/edit/{{ $game->id }}">{{ $game->team1 }} : {{ $game->team2 }} [ Anstoss {{ $game->kickoff }} ] </label>
|
||||
<a href="/tipps/edit/{{App\Tipp::getTipp($game->id,$user->id)->id}}">{{ App\Tipp::getTipp($game->id, $user->id)->score1 }} : {{ App\Tipp::getTipp($game->id, $user->id)->score2 }}</a>
|
||||
</div>
|
||||
|
||||
<label style="float:left;width=30px;">{{ App\Tipp::getScore($game->id,$user->id) }}</label>
|
||||
<p> </p>
|
||||
@endforeach
|
||||
<p> </p>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</section>
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue