Your code is a bit hard to follow, and it seems you'd only be keeping track of one item against a user. Anyway why not just do a simple check like this:
@if( Auth::user()->item_id = $btn->item_id )
<div class="wantIt"></div>
@else
<div class="unwantIt"></div>
@endif
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community