Working on Qualification Pairings
This commit is contained in:
parent
9c0f94758d
commit
a66189ca00
19 changed files with 9005 additions and 237 deletions
36
pfosten/resources/views/leagues/matches.blade.php
Executable file
36
pfosten/resources/views/leagues/matches.blade.php
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<section class="text-center">
|
||||
<div class="container">
|
||||
|
||||
<label>{{ $season->name }}</label>
|
||||
<h2>Spielplan</h2>
|
||||
|
||||
<!-- 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> </p>
|
||||
@foreach($matchesTotal[$round_id] as $match)
|
||||
@if ($leagueNames[$match->league_id]=="Qualifikationsgruppe 4") <!-- Debug -->
|
||||
<tr class="table-bordered">
|
||||
<td> {{$leagueNames[$match->league_id]}} </td>
|
||||
<td> {{$match->user1_id}}-{{$match->user1_name}} </td>
|
||||
<td> {{$match->user2_id}}-{{$match->user2_name}} </td>
|
||||
<td>0:0</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</table>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
@extends('layouts.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<h2>Liga-Spiel Einstellungen</h2>
|
||||
<div class="lead">{{ $season->name }}</div>
|
||||
|
||||
|
||||
<div class="dropdown">
|
||||
<button onclick="myFunction()" class="dropbtn">Dropdown</button>
|
||||
<div id="myDropdown" class="dropdown-content">
|
||||
<a href="#">Link 1</a>
|
||||
<a href="#">Link 2</a>
|
||||
<a href="#">Link 3</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
/* When the user clicks on the button,
|
||||
toggle between hiding and showing the dropdown content */
|
||||
function myFunction() {
|
||||
document.getElementById("myDropdown").classList.toggle("show");
|
||||
}
|
||||
|
||||
// Close the dropdown menu if the user clicks outside of it
|
||||
window.onclick = function(event) {
|
||||
if (!event.target.matches('.dropbtn')) {
|
||||
|
||||
var dropdowns = document.getElementsByClassName("dropdown-content");
|
||||
var i;
|
||||
for (i = 0; i < dropdowns.length; i++) {
|
||||
var openDropdown = dropdowns[i];
|
||||
if (openDropdown.classList.contains('show')) {
|
||||
openDropdown.classList.remove('show');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue