working on gshirt table#
This commit is contained in:
parent
9f52eec1f3
commit
aedfeadb44
4 changed files with 13 additions and 10 deletions
|
|
@ -577,10 +577,9 @@ class UsersController extends Controller
|
||||||
public function gshirt_ranking() {
|
public function gshirt_ranking() {
|
||||||
if (Auth::guest()) { return redirect("/"); }
|
if (Auth::guest()) { return redirect("/"); }
|
||||||
|
|
||||||
|
$rankingDisplay = Tipp::gshirt_table();
|
||||||
|
$test="Test";
|
||||||
|
return view ('users.gshirt_ranking', compact('rankingDisplay'));
|
||||||
return view ('users.gshirt_ranking');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -713,7 +713,6 @@ class Tipp extends Model
|
||||||
}
|
}
|
||||||
usort($lastroundentries, array('App\Tipp', 'cmpGShirtTotal'));
|
usort($lastroundentries, array('App\Tipp', 'cmpGShirtTotal'));
|
||||||
|
|
||||||
|
|
||||||
$rankingDisplay=array();
|
$rankingDisplay=array();
|
||||||
foreach($lastroundentries as $entry) {
|
foreach($lastroundentries as $entry) {
|
||||||
$user_id = $entry['user_id'];
|
$user_id = $entry['user_id'];
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,16 @@
|
||||||
|
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
<div class="fixer-container">
|
<div class="fixer-container">
|
||||||
<div class="lead" >Grünes Trikot </div>
|
<div class="lead" >Grünes Trikot</div>
|
||||||
|
|
||||||
|
@foreach ($rankingDisplay as $user_id => $round_array)
|
||||||
|
@foreach($round_array as $unknown)
|
||||||
|
@foreach($unknown as $entry)
|
||||||
|
<p>{{ $user_id }} {{ $entry['user_name'] }} Round-ID: {{$entry['round_id']}}</p>
|
||||||
|
@endforeach
|
||||||
|
@endforeach
|
||||||
|
@endforeach
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
@section('content')
|
@section('content')
|
||||||
<section class="jumbotron text-center container">
|
<section class="jumbotron text-center container">
|
||||||
<!-- <div class="container"> -->
|
<!-- <div class="container"> -->
|
||||||
|
|
||||||
<div class="lead col-md-8" >registrierte Spieler: {{ $total_user_count }} , davon bezahlt: {{$active_user_count}}</div>
|
<div class="lead col-md-8" >registrierte Spieler: {{ $total_user_count }} , davon bezahlt: {{$active_user_count}}</div>
|
||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
@ -34,9 +33,6 @@
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@endsection
|
@endsection
|
||||||
Loading…
Add table
Add a link
Reference in a new issue