Azuriom / Plugin-Vote

A vote plugin to reward players when they vote.

Home Page:https://market.azuriom.com/resources/2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display number of votes to users

77Romain77 opened this issue · 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.

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