I'm getting a "Parse error: syntax error, unexpected ')'", not sure why : <p>I'm trying to change the look of a button based on whether the user has liked an image by using 1 class if he has and another class if he hasn't but I'm getting a parse error which I can not find. Of course the reason could be that I'm trying to do something that can't be done like that.</p>

<pre><code>&lt;a href='#' class='vote {{ Auth::user()-&gt;votes()-&gt;where("image_id", $image-&gt;id)-&gt;first() ? Auth::user()-&gt;votes()-&gt;where("image_id", $image-&gt;id)-&gt;first()-&gt;like == 1 ? "liked" : "like" }}' id='{{$image-&gt;id}}'&gt;&lt;/a&gt;
</code></pre>
