title: Laravel Blade using if condition inside foreach
body: <p>here is my code ..</p>
  
  <pre><code>@foreach (Session::get('show_my_data') as $key1 =&gt; $value1)
      &lt;div class="sb_li"&gt;
          &lt;input id="sb_system_input_{{ $value1-&gt;Myid }}" class="fr_cap" type="text" disabled name="fr_cap[{{ $value1-&gt;Myid }}]" value="{{ $value1-&gt;FRCapacity }}" maxlength="127"/&gt;
      &lt;/div&gt;
      @foreach ($m002_siteinfo as $key =&gt; $value)
          @if({{!$value1-&gt;name}})
          &lt;div class="sb_li"&gt;
              &lt;input id="sb_system_input_{{ $value-&gt;Myid }}" class="fr_cap" type="text" disabled name="fr_cap[{{ $value-&gt;Myid }}]" value="" maxlength="127"/&gt;
          &lt;/div&gt;
          @endif
      @endforeach 
  @endforeach 
  </code></pre>
  
  <p>I am trying to display values of <code>Second foreach</code> which is not there in <code>first foreach</code> using <code>if condition</code>  in the middle, but iam getting <code>syntax error</code> in Laravel ,Blade templete.. any ways to fix this??</p>