so i'm using blade for my templates (apparently not the latest version but it's not important)
@layout('master')
@section('mainContent')
my contents here
@endsection
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
something like this .... perhaps cleaner
@if(!$is_ajaxCall)
@layout('master')
@endif
@if(!$is_ajaxCall)
@section('mainContent')
@endif
my contents here
@if(!$is_ajaxCall)
@endsection
@endif