blob: 4bc71c69f6380c3227d83e408234b4c739dc6fa9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
use HebrewParseTrainer\User;
?>
@if(count(User::all()) > 0)
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Top contributors</h3>
</div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Points</th>
</tr>
</thead>
<tbody>
@foreach(User::orderBy('points', 'desc')->take(3)->get() as $user)
<tr>
<td><img src="https://gravatar.com/avatar/{{ md5(strtolower(trim($user->email))) }}?s=40"/></td>
<td>{{{ $user->name }}}</td>
<td>{{{ $user->points }}}</td>
</tr>
@endforeach
</tbody>
</table>
@if(Auth::check())
<p>You have {{ Auth::user()->points }} points.</p>
@endif
</div>
</div>
@endif
|