title: Laravel's blade : showing template without its layout if it's a ajax request
body: <p>so i'm using blade for my templates  (apparently not the latest version but it's not important) </p>
  
  <pre><code>@layout('master')
  
  @section('mainContent')
  my contents here
  @endsection
  </code></pre>
  
  <p>it works great but the thing is when im calling the page via ajax request i dont want the layout to show up , only mainContent section </p>
  
  <p>something like this .... perhaps cleaner </p>
  
  <pre><code>@if(!$is_ajaxCall)
  @layout('master')
  @endif
  
  @if(!$is_ajaxCall)
  @section('mainContent')
  @endif
  my contents here
  
  @if(!$is_ajaxCall)
  @endsection
  @endif
  </code></pre>