Display number of votes to users
77Romain77 opened this issue · comments
77Romain77 commented
Add a small widget on the voting page that allows the user to see his number of vote. Currently, users can only see the top and the podium, but not their personal one.
Jav commented
@77Romain77 it can be easily added to your theme for example:
@auth
<p>
My number of votes since the beginning : {{ \Azuriom\Plugin\Vote\Models\Vote::where('user_id', auth()->id())->count() }}
</p>
@endauth
For more information you can look at https://laravel.com/docs/10.x/queries and https://laravel.com/docs/10.x/eloquent