Azuriom/Plugin-Vote

Display number of votes to users

Closed this issue · 1 comments

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.

@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