Qualification Pairing done

This commit is contained in:
Torsten 2017-09-23 12:19:46 +02:00
parent a66189ca00
commit e0d38fac38
4 changed files with 73 additions and 172 deletions

View file

@ -5,31 +5,35 @@
<div class="container">
<label>{{ $season->name }}</label>
<h2>Spielplan</h2>
<h1>Spielplan</h1>
<!-- Start Runden-Loop-->
@foreach($matchesTotal as $round_id => $roundGroup)
<h3>{{$roundNames[$round_id]}}</h3>
<table class="table-bordered col-lg-12">
<tr class="table-bordered">
<td class="table-bordered" style="width:150px;">Gruppe</td>
<td class="table-bordered" style="width:150px;">Spieler 1</td>
<td class="table-bordered" style="width:150px;">Spieler 2</td>
<td class="table-bordered" style="width:150px;">Ergebnis</td>
</tr>
<p>&nbsp;</p>
@foreach($matchesTotal[$round_id] as $match)
@if ($leagueNames[$match->league_id]=="Qualifikationsgruppe 4") <!-- Debug -->
<tr class="table-bordered">
<td>&nbsp;{{$leagueNames[$match->league_id]}}&nbsp;</td>
<td>&nbsp;{{$match->user1_id}}-{{$match->user1_name}}&nbsp;</td>
<td>&nbsp;{{$match->user2_id}}-{{$match->user2_name}}&nbsp;</td>
<td>0:0</td>
</tr>
@endif
@endforeach
<h2>{{$roundNames[$round_id]}}</h2>
</table>
<!-- Start Liga-Loop-->
@foreach($matchesTotal[$round_id] as $league_id => $matchGroup)
<h3>{{$leagueNames[$league_id]}}</h3>
<table class="table-bordered col-lg-12">
<tr class="table-bordered">
<td class="table-bordered" style="width:150px;">Heim</td>
<td class="table-bordered" style="width:150px;">Gast</td>
<td class="table-bordered" style="width:150px;">Ergebnis</td>
</tr>
<!-- Start Matchgruppen-Loop-->
@foreach($matchesTotal[$round_id][$league_id] as $match)
<tr class="table-bordered">
<td>&nbsp;{{$match->user1_id}}-{{$match->user1_name}}&nbsp;</td>
<td>&nbsp;{{$match->user2_id}}-{{$match->user2_name}}&nbsp;</td>
<td>0:0</td>
</tr>
@endforeach
</table>
<p>&nbsp;</p>
@endforeach
@endforeach
</div>
</section>