title: how to write conditional statements inside div html?
body: <p>I have a requirement of showing 2 div's based on a condition like if value is '1' show one div else if value is '0' display another div. Below is my code:</p>
  
  <pre><code>&lt;div class="csv" &lt;?php if($campaign[0]-&gt;method != 'CSV'){ echo "style='display:none'"; } ?&gt; &gt;
   -----------
   ------------
  &lt;/div&gt;
  
  &lt;div class="api" &lt;?php if($campaign[0]-&gt;method != 'API'){ echo "style='display:none'"; } ?&gt; &gt;
   ----------
   ----------
  &lt;/div&gt;
  </code></pre>
  
  <p>Code is looking fine but not working properly. I am trying to achieve this in Laravel 5.4 framework. Any help would be appreciated. Thanks</p>