includeIf blade code example
Example 1: laravel guest blade
//LARAVEL - BLADE:
@guest
// The user is not authenticated...
@endguest
@auth
// The user is authenticated...
@endauth
Example 2: laravel blade section keep template
<!-- Stored in resources/views/child.blade.php -->
@extends('layouts.app')
@section('title', 'Page Title')
@section('sidebar')
@parent
<p>This is appended to the master sidebar.</p>
@endsection
@section('content')
<p>This is my body content.</p>
@endsection