title: Using returned data from controller in Laravel blade
body: <p>With Laravel, I'm returning data from controller to blade. How to access to <strong>datesValid</strong> value in blade directly? I want to print the value in that case true.</p>
  
  <p>Controller code:</p>
  
  <pre><code>if (empty($source)) {
     return ["recordsTotal" =&gt; 0, "recordsFiltered" =&gt; 0, 'data' =&gt; [], 'datesValid' =&gt; $datesValid];
  } else {
     return ["recordsTotal" =&gt; $source['count'][0]['count'], "recordsFiltered" =&gt; $source['count'][0]['count'], 'data' =&gt; $source['result'], 'datesValid' =&gt; $datesValid ];
  }
  </code></pre>