blob: 52973e692b1e82512f6047f0face0ebe4bfc7126 (
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
|
<?php
use HebrewParseTrainer\User;
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Top users</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(10)->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>
</div>
</div>
|