tippspiel/pfosten/resources/views/leagues/matches.blade.php

46 lines
2.1 KiB
PHP
Raw Normal View History

2017-09-22 17:40:48 +02:00
@extends('layouts.layout')
@section('content')
<section class="text-center">
<div class="container">
<label>{{ $season->name }}</label>
2017-09-23 12:19:46 +02:00
<h1>Spielplan</h1>
2017-09-22 17:40:48 +02:00
<!-- Start Runden-Loop-->
@foreach($matchesTotal as $round_id => $roundGroup)
<h2><a href="/users/ranking/roundid_{{$round_id}}#playerid_-1">{{$roundNames[$round_id]}}</a></h2>
2017-09-23 12:19:46 +02:00
<!-- Start Liga-Loop-->
@foreach($matchesTotal[$round_id] as $league_id => $matchGroup)
<h3>{{$leagueNames[$league_id]}}</h3>
<table class="table-bordered col-lg-12">
2017-09-22 17:40:48 +02:00
<tr class="table-bordered">
2017-09-23 12:19:46 +02:00
<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>
2017-09-22 17:40:48 +02:00
</tr>
2017-09-23 12:19:46 +02:00
<!-- Start Matchgruppen-Loop-->
@foreach($matchesTotal[$round_id][$league_id] as $match)
<tr class="table-bordered">
<td>&nbsp;<a href="/league/showSingleUserMatches/user_id={{$match->user1_id}}"> {{$match->user1_name}} </a>&nbsp;</td>
<td>&nbsp;<a href="/league/showSingleUserMatches/user_id={{$match->user2_id}}"> {{$match->user2_name}} </a>&nbsp;</td>
2017-10-02 10:49:15 +02:00
@if($match->user1_rankscore==-1)
<td> ausstehend </td>
@else
<td> {{$match->user1_rankscore}}:{{$match->user2_rankscore}}</td>
@endif
2017-09-23 12:19:46 +02:00
</tr>
@endforeach
</table>
<p>&nbsp;</p>
@endforeach
2017-09-22 17:40:48 +02:00
@endforeach
</div>
</section>
@endsection