title: if - else does not work in laravel framework blade templating
body: <p>My question is, I have page as Laravel blade template.
  If user  logged in, my page should be extended from a master layout.
  If user did not login, my page should be extended from another master layout.</p>
  
  <p>But my if- else statement does not working</p>
  
  <pre><code> &lt;?php 
   if (Auth::check()){?&gt;
   @extends('layouts.outside');
   &lt;?php } else{ ?&gt;
       @extends('layouts.admin');
   &lt;?php }?&gt;
  </code></pre>
  
  <p>I also tried blade if-else version as follows:</p>
  
  <pre><code>@if (Auth::check())
   @extends('layouts.outside')
  @else
   @extends('layouts.admin')
  @endif
  </code></pre>
  
  <p>It did not work too. Every time wheter the statement true or false the block in if and else statement works one after. As there is no if else.
  I mean every time it calls layouts.outside one time one and just bottom of it the same page is loaded  again with layouts.outside, whether not matter if the user logged in or not.</p>
  
  <p>Thanks</p>