xmrmemes/resources/views/leaderboard.blade.php
dev 4c1b493943 Add tips count to leaderboard
Also rename memes_total to memes_count to make it more consistent
2021-08-10 21:55:34 -07:00

36 lines
1.1 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="table-responsive-md">
<table class="table">
<thead>
<tr>
<th scope="col">User</th>
<th scope="col">Meme Count</th>
<th scope="col">Tips Count</th>
<th scope="col">Total XMR Tips</th>
</tr>
</thead>
<tbody>
@foreach ($data['users'] as $user)
<tr>
<td><a href="{{ url('/user/' . $user->id) }}">{{ $user->name }}</a></td>
<td>{{ $user->memes_count }}</td>
<td>{{ $user->tips_count }}</td>
<td>{{ $user->tips_total }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection