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() {
|
||||
if (Auth::guest()) { return redirect("/"); }
|
||||
|
||||
|
||||
|
||||
|
||||
return view ('users.gshirt_ranking');
|
||||
$rankingDisplay = Tipp::gshirt_table();
|
||||
$test="Test";
|
||||
return view ('users.gshirt_ranking', compact('rankingDisplay'));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -713,7 +713,6 @@ class Tipp extends Model
|
|||
}
|
||||
usort($lastroundentries, array('App\Tipp', 'cmpGShirtTotal'));
|
||||
|
||||
|
||||
$rankingDisplay=array();
|
||||
foreach($lastroundentries as $entry) {
|
||||
$user_id = $entry['user_id'];
|
||||
|
|
|
|||
|
|
@ -5,7 +5,16 @@
|
|||
|
||||
<div class="main-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>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
@section('content')
|
||||
<section class="jumbotron text-center container">
|
||||
<!-- <div class="container"> -->
|
||||
|
||||
<div class="lead col-md-8" >registrierte Spieler: {{ $total_user_count }} , davon bezahlt: {{$active_user_count}}</div>
|
||||
|
||||
<p> </p>
|
||||
|
|
@ -34,9 +33,6 @@
|
|||
<p> </p>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
</section>
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue