tippspiel/pfosten/resources/views/users/ranking.blade.php

140 lines
6.9 KiB
PHP
Raw Normal View History

@extends('layouts.layout')
@section('content')
2017-06-26 17:21:30 +02:00
<div style="float:left;left:10%">
<div>Runde1</div>
<div>Runde2</div>
<div>Runde3</div>
<div>Runde4</div>
<div>Runde5</div>
<div>Runde6</div>
<div>Runde7</div>
<div>Runde8</div>
<div>Runde9</div>
<div>Runde10</div>
<div>Runde11</div>
<div>Runde12</div>
<div>Runde13</div>
<div>Runde14</div>
<div>Runde15</div>
<div>Runde16</div>
<div>Runde17</div>
<div>Runde18</div>
<div>Runde19</div>
<div>Runde20</div>
<div>Runde21</div>
<div>Runde22</div>
<div>Runde23</div>
<div>Runde24</div>
<div>Runde25</div>
<div>Runde26</div>
<div>Runde27</div>
<div>Runde28</div>
<div>Runde29</div>
<div>Runde30</div>
<div>Runde31</div>
<div>Runde32</div>
<div>Runde33</div>
<div>Runde34</div>
<div>Runde35</div>
<div>Runde36</div>
<div>Runde37</div>
<div>Runde38</div>
<div>Runde39</div>
<div>Runde40</div>
</div>
<div style="float:left; position:relative;left:47%">
<div style="float:left; position:relative; left:-50%;">
<h3>Saison: {{ App\Season::getCurrent()->name }}</h3>
<h4>Runde: {{ $round->name }}</h4>
<h4>Rangliste und Tippübersicht</h4>
<table>
<tr>
<td style="width:50px;background-color:grey"></td>
<td style="width:250px;">=richtige Tendenz</td>
</tr>
<tr>
<td style="width:50px;background-color:orange"></td>
<td style="width:250px;">=richtiges Ergebnis</td>
</tr>
<tr>
<td style="width:50px;background-color:red"></td>
<td style="width:250px;">=richtiges Ergebnis mit Joker</td>
</tr>
</table>
<p>&nbsp;</p>
2017-06-26 17:21:30 +02:00
<table class="table-bordered">
<tr class="table-bordered">
2017-06-26 17:21:30 +02:00
<td class="table-bordered" align="center" style="width:200px;">Name</td>
<td class="table-bordered" align="center">&nbsp;Total&nbsp;</td>
<td class="table-bordered" align="center">&nbsp;Tag&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;">&nbsp;{{$games[0]->team1}}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;">&nbsp;{{$games[0]->team2}}&nbsp;</td>
<td class="table-bordered" align="center">&nbsp;Joker&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;">&nbsp;{{$games[1]->team1}}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;">&nbsp;{{$games[1]->team2}}&nbsp;</td>
<td class="table-bordered" align="center">&nbsp;Joker&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;">&nbsp;{{$games[2]->team1}}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;">&nbsp;{{$games[2]->team2}}&nbsp;</td>
<td class="table-bordered" align="center">&nbsp;Joker&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;">&nbsp;{{$games[3]->team1}}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;">&nbsp;{{$games[3]->team2}}&nbsp;</td>
<td class="table-bordered" align="center">&nbsp;Joker&nbsp;</td>
</tr>
@foreach($users as $user)
2017-06-26 17:21:30 +02:00
@if (App\User::is_season_paid($user->id)=="Ja")
<tr>
2017-06-26 17:21:30 +02:00
<td class="table-bordered">&nbsp;<a class="text list-unstyled" href="#" style="width:350px;">{{ $user->fullname }}&nbsp;</a></td>
<td class="table-bordered" align="center">&nbsp;{{ $user->totalScore }}&nbsp;</td>
<td class="table-bordered" align="center">&nbsp;{{ $user->dayScore }}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;{{App\Tipp::getCol($user->id,$games[0]->id)}}">&nbsp;{{ $tippDisplay[$user->id][$games[0]->id][0] }}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;{{App\Tipp::getCol($user->id,$games[0]->id)}}">&nbsp;{{ $tippDisplay[$user->id][$games[0]->id][1] }}&nbsp;</td>
<td class="table-bordered"><img src="/img/joker.png" style="{{ ($tippDisplay[$user->id][$games[0]->id][2]==true ? 'float:left;width:32px;height:32px' : 'display: none;') }}"></td>
<td class="table-bordered" align="center" style="width:150px;{{App\Tipp::getCol($user->id,$games[1]->id)}}">&nbsp;{{$tippDisplay[$user->id][$games[1]->id][0] }}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;{{App\Tipp::getCol($user->id,$games[1]->id)}}">&nbsp;{{$tippDisplay[$user->id][$games[1]->id][1] }}&nbsp;</td>
<td class="table-bordered"><img src="/img/joker.png" style="{{ ($tippDisplay[$user->id][$games[1]->id][2]==true ? 'float:left;width:32px;height:32px' : 'display: none;') }}"></td>
<td class="table-bordered" align="center" style="width:150px;{{App\Tipp::getCol($user->id,$games[2]->id)}}">&nbsp;{{$tippDisplay[$user->id][$games[2]->id][0] }}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;{{App\Tipp::getCol($user->id,$games[2]->id)}}">&nbsp;{{$tippDisplay[$user->id][$games[2]->id][1] }}&nbsp;</td>
<td class="table-bordered"><img src="/img/joker.png" style="{{ ($tippDisplay[$user->id][$games[2]->id][2]==true ? 'float:left;width:32px;height:32px' : 'display: none;') }}"></td>
<td class="table-bordered" align="center" style="width:150px;{{App\Tipp::getCol($user->id,$games[3]->id)}}">&nbsp;{{$tippDisplay[$user->id][$games[3]->id][0] }}&nbsp;</td>
<td class="table-bordered" align="center" style="width:150px;{{App\Tipp::getCol($user->id,$games[3]->id)}}">&nbsp;{{$tippDisplay[$user->id][$games[3]->id][1] }}&nbsp;</td>
<td class="table-bordered"><img src="/img/joker.png" style="{{ ($tippDisplay[$user->id][$games[3]->id][2]==true ? 'float:left;width:32px;height:32px' : 'display: none;') }}"></td>
</tr>
2017-06-26 17:21:30 +02:00
@endif
@endforeach
</table>
<p>&nbsp;</p>
</div>
</div>
2017-06-26 17:21:30 +02:00
@endsection