title: Laravel Greater than or equal in views
body: <p>I passed a variable to view and I want to make an if condition for this value with greater than or equal</p>
  
  <p>example</p>
  
  <pre><code>@if($var &gt;= 3)
  do something...
  @endif
  </code></pre>
  
  <p>when I do this I got this error</p>
  
  <blockquote>
    <p>Object of class Illuminate\Database\Eloquent\Collection could not be converted to int</p>
  </blockquote>
  
  <p>I search a lot about this but I didn't get any answers</p>