Show player matches for single userId

This commit is contained in:
Torsten 2017-09-30 13:14:46 +02:00
parent 93d7670b48
commit 98ebdb6c93
7 changed files with 163 additions and 9 deletions

View file

@ -25,7 +25,7 @@
<a href="#" id="btn_league" onclick="toggleSelect('dropdown_league'); return false;" style="font-weight:normal; font-color: blue; font-size: 22px;">Spieler-Liga</a>
<div id="dropdown_league" class="dropdown-content">
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/league_show_rounds/league_rank=4/round_id=30">Spielplan</a> &nbsp;
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="#">Tabellen</a> &nbsp;
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/league/show/rank=4/max_round_id=-1">Tabellen</a> &nbsp;
</div>
</label>
&nbsp;

View file

@ -0,0 +1,34 @@
@extends('layouts.layout')
@section('content')
<section class="text-center">
<div class="container">
<h2>{{ $season->name }}</h2>
@foreach($leagueScores as $leagueId => $playerTuples)
<h2>{{ $leagueNames[$leagueId] }}</h2>
<table class="table-bordered col-lg-12">
<tr class="table-bordered">
<td class="table-bordered" style="width:50px;">Punkte</td>
<td class="table-bordered" style="width:150px;">Spieler</td>
<td class="table-bordered" style="width:150px;">Torverhältnis</td>
</tr>
<!-- Start Matchgruppen-Loop-->
@foreach($playerTuples as $player)
<tr class="table-bordered">
<td>&nbsp; {{$player[1]}} &nbsp;</td>
<td>&nbsp;<a href="/league/showSingleUserMatches/user_id={{$player[0]}}"> {{$userNames[$player[0]]}} </a>&nbsp;</td>
<td>&nbsp; {{$player[2]}}:{{$player[3]}} &nbsp;</td>
</tr>
@endforeach
</table>
<p>&nbsp;</p>
@endforeach
</div>
</section>
@endsection

View file

@ -0,0 +1,30 @@
@extends('layouts.layout')
@section('content')
<section class="text-center">
<div class="container">
<h2>{{ $userName }}</h2>
<table class="table-bordered col-lg-12">
<tr class="table-bordered">
<td class="table-bordered" style="width:50px;">Liga / Gruppe</td>
<td class="table-bordered" style="width:150px;">Runde</td>
<td class="table-bordered" style="width:150px;">Spieler 1</td>
<td class="table-bordered" style="width:150px;">Spieler 2</td>
</tr>
@foreach($matches as $match)
<tr class="table-bordered">
<td class="table-bordered" style="width:50px;">{{$leagueNames[$match->league_id]}}</td>
<td class="table-bordered" style="width:150px;">{{$roundNames[$match->round_id]}}</td>
<td class="table-bordered" style="width:150px;">{{$match->user1_name}}</td>
<td class="table-bordered" style="width:150px;">{{$match->user2_name}}</td>
</tr>
@endforeach
</table>
</div>
</section>
@endsection