Quotes Display & Daywin Calculation, Bugfix: 2 extra rankscore for all 4 tendencies in a round

This commit is contained in:
Torsten 2017-08-19 16:53:39 +02:00
parent 954eca957b
commit 3fa31921f0
9 changed files with 522 additions and 31 deletions

View file

@ -68,6 +68,7 @@
<span style="border-bottom: 1px solid #ccc; padding: 5px 10px;">Punkte Tag</span>
</div>
</th>
<th>&nbsp;</th><!-- Spacer Column -->
<th style="height:140px;white-space: nowrap;">
<div style="transform:translate(25px, 51px) rotate(315deg);width:30px;">
<span style="border-bottom: 1px solid #ccc; padding: 5px 10px;">{{$games[0]->team1}}</span>
@ -131,7 +132,12 @@
<span style="border-bottom: 1px solid #ccc; padding: 5px 10px;">Joker</span>
</div>
</th>
<th>&nbsp;</th><!-- Spacer Column -->
<th style="height:140px;white-space: nowrap;">
<div style="transform:translate(25px, 51px) rotate(315deg);width:30px;">
<span style="border-bottom: 1px solid #ccc; padding: 5px 10px;">Aussch&uuml;ttung</span>
</div>
</th>
@ -143,6 +149,7 @@
<td class="table-bordered">&nbsp;<a class="text list-unstyled" href="#" style="vertical-align: middle;">{{ $entry["user_name"] }} &nbsp;</a></td>
<td class="table-bordered" align="center">&nbsp;{{ $entry["rankscore_total"] }}&nbsp;</td>
<td class="table-bordered" align="center">&nbsp;{{ $entry["rankscore"] }}&nbsp;</td>
<td class="table-bordered" align="center" style="border: 0px">&nbsp;&nbsp;&nbsp;</td> <!-- Spacer column -->
<td class="table-bordered" align="center" style="{{$entry["trendCol1"]}}">&nbsp;{{ str_replace("-1","x",$entry["tipp_score1"]) }}&nbsp;</td>
<td class="table-bordered" align="center" style="{{$entry["trendCol1"]}}">&nbsp;{{ str_replace("-1","x",$entry["tipp_score2"]) }}&nbsp;</td>
<td class="table-bordered"><div style="margin: 0 auto; width: 32px;"><img src="/img/joker.png" style="{{ ($entry["joker1"] ? 'float:left;width:32px;height:32px' : 'display: none;') }}"></div></td>
@ -155,6 +162,8 @@
<td class="table-bordered" align="center" style="{{$entry["trendCol4"]}}">&nbsp;{{ str_replace("-1","x",$entry["tipp_score7"]) }}&nbsp;</td>
<td class="table-bordered" align="center" style="{{$entry["trendCol4"]}}">&nbsp;{{ str_replace("-1","x",$entry["tipp_score8"]) }}&nbsp;</td>
<td class="table-bordered"><div style="margin: 0 auto; width: 32px;"><img src="/img/joker.png" style="{{ ($entry["joker4"] ? 'float:left;width:32px;height:32px' : 'display: none;') }}"></div></td>
<td class="table-bordered" align="center" style="border: 0px">&nbsp;&nbsp;&nbsp;</td> <!-- Spacer column -->
<td class="table-bordered" align="center" >&nbsp;{{ $entry["payout"] }}&nbsp;{{ $entry["payout"]>0 ? '€': '' }}</td>
</tr>
@endforeach
@ -167,6 +176,7 @@
<td>Spiel-Ergebnis</td>
<td></td>
<td></td>
<td>&nbsp;</td> <!-- Spacer Column -->
<td align="center">{{ ($game_results[0]==-1? "" : $game_results[0]) }}</td>
<td align="center">{{ ($game_results[1]==-1? "" : $game_results[1]) }}</td>
<td></td>
@ -179,6 +189,7 @@
<td align="center">{{ ($game_results[6]==-1? "" : $game_results[6]) }}</td>
<td align="center">{{ ($game_results[7]==-1? "" : $game_results[7]) }}</td>
<td></td>
<td></td>
</tr>
<!-- Control Cell width -->
@ -198,6 +209,9 @@
<td style="width:50px;"> <div></div></td>
<td style="width:50px;"> <div></div></td>
<td style="width:50px;"> <div></div></td>
<td style="width:50px;"> <div></div></td>
<td style="width:50px;"> <div></div></td>
<td style="width:50px;"> <div></div></td>
</tr>
</table>

View file

@ -0,0 +1,152 @@
@extends('layouts.layout')
@section('content')
<section class="jumbotron text-center">
<div class="container">
@if ($currentSeason)
<div class="lead"><h2><strong>{{ $currentSeason->name }}</strong></h2></div>
<div class="lead"><h2><strong>Ausschüttungs-Quoten</strong></h2></div>
@endif
@if ($currentSeason)
<div>
<h3>Spiel-Einsatz</h3>
<form>
<div class="form-group" >
<h4>
<label style="float:left; width:200px;">Einsatz pro Spieler:</label>
<label style="float:left;">&nbsp;{{$einsatz}} €</label>
</h4>
</div>
<p>&nbsp;</p><p>&nbsp;</p>
<h3>Spielquoten</h3>
<div class="form-group" >
<h4>
<label style="float:left; width:200px;">Tagessieg:</label>
<label style="float:left;">&nbsp;{{$payouts["Tagessieg"]}} €</label>
<p>&nbsp;</p>
@if($payouts["gruenes_trikot"]>0)
<label style="float:left; width:200px;">Grünes Trikot:</label>
<label style="float:left;">{{$payouts['gruenes_trikot']}} €</label>
<p>&nbsp;</p>
@endif
@if ($payouts["pokal"]>0)
<label style="float:left; width:200px;">Pokal:</label>
<label style="float:left;">{{ $payouts['pokal']}} €</label>
<p>&nbsp;</p>
@endif
</h4>
</div>
<p>&nbsp;</p><p>&nbsp;</p>
<h3>Platzierungsquoten:</h3>
<div class="form-group" >
<h4>
<label style="float:left; width:200px;">Platz 1:</label>
<input type="text" class="form-control" value="{{ $payouts["platz1"] }} €" style="float:left; width:100px;" readonly>
<!-- <label>Test</label>-->
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 2:</label>
<input type="text" class="form-control" id="platz2" name="platz2" value="{{ $payouts["platz2"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 3:</label>
<input type="text" class="form-control" id="platz3" name="platz3" value="{{ $payouts["platz3"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 4:</label>
<input type="text" class="form-control" id="platz4" name="platz4" value="{{ $payouts["platz4"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 5:</label>
<input type="text" class="form-control" id="platz5" name="platz5" value="{{ $payouts["platz5"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 6:</label>
<input type="text" class="form-control" id="platz6" name="platz6" value="{{ $payouts["platz6"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 7:</label>
<input type="text" class="form-control" id="platz7" name="platz7" value="{{ $payouts["platz7"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 8:</label>
<input type="text" class="form-control" id="platz8" name="platz8" value="{{ $payouts["platz8"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 9:</label>
<input type="text" class="form-control" id="platz9" name="platz9" value="{{ $payouts["platz9"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 10:</label>
<input type="text" class="form-control" id="platz10" name="platz10" value="{{ $payouts["platz10"] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
</h4>
@if ($payouts["liga_platz1"]>0)
<h3>Liga:</h3>
<div class="form-group" >
<h4>
<label style="float:left; width:200px;">Platz 1:</label>
<input type="text" class="form-control" id="liga_platz1" name="liga_platz1" value="{{ $payouts['liga_platz1'] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 2:</label>
<input type="text" class="form-control" id="liga_platz2" name="liga_platz2" value="{{ $payouts['liga_platz2'] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
<label style="float:left; width:200px;">Platz 3:</label>
<input type="text" class="form-control" id="liga_platz3" name="liga_platz3" value="{{ $payouts['liga_platz3'] }} €" style="float:left; width:100px;" readonly>
<p>&nbsp;</p>
</h4>
</div>
<p>&nbsp;</p><p>&nbsp;</p>
@endif
</div>
</form>
</div>
@endif
</div>
</section>
@endsection