title: Compare dates in laravel
body: <p>I have this field <code>$data-&gt;created_at</code> and would like to only show data if it's <code>&gt; 30 minutes</code> old</p>
  
  <p>in my view I have:</p>
  
  <pre><code>@if ($data-&gt;created_at &gt; strtotime('30 minutes'))
      show data
  @endif
  </code></pre>
  
  <p>This doesn't work. I've also built this statement in the controller, but it doesn't work. It seems to be affected by Carbon in some way. </p>
  
  <p>What's the best way to do this in Laravel?</p>