title: How to add layout in blade in laravel?
body: <p>This is my output
  <a href="https://i.stack.imgur.com/6lYwB.png" rel="nofollow noreferrer">enter image description here</a>
  I created one layout in layouts/member.blade.php and i used in the member/add-single-trade/index.blade.php than content are blank nd show only member layout content
  This is member layout</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt; 
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    
  &lt;!-- Latest compiled and minified CSS --&gt;
  &lt;style &gt;
    .sidenav {
    height: 100%;
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    padding-top: 20px;
  }
  
  /* Style the sidenav links and the dropdown button */
  .sidenav a, .dropdown-btn {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 20px;
    color: #818181;
    display: block;
    border: none;
    background: none;
    width:100%;
    text-align: left;
    cursor: pointer;
    outline: none;
  }
  
  /* On mouse-over */
  .sidenav a:hover, .dropdown-btn:hover {
    color: #f1f1f1;
  }
  
  /* Main content */
  .main {
    margin-left: 200px; /* Same as the width of the sidenav */
    font-size: 20px; /* Increased text to enable scrolling */
    padding: 0px 10px;
  }
  
  /* Add an active class to the active dropdown button */
  .active {
    background-color: green;
    color: white;
  }
  
  /* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
  .dropdown-container {
    display: none;
    background-color: #262626;
    padding-left: 8px;
  }
  
  /* Optional: Style the caret down icon */
  .fa-caret-down {
    float: right;
    padding-right: 8px;
  }
  
  &lt;/style&gt;
  
  &lt;link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"&gt;
  &lt;script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
  &lt;body&gt;
  
  @yield('content');
  
    &lt;div class="sidenav"&gt;
    &lt;a href="#about"&gt;About&lt;/a&gt;
    &lt;a href="#services"&gt;Services&lt;/a&gt;
    &lt;a href="#clients"&gt;Clients&lt;/a&gt;
    &lt;a href="#contact"&gt;Contact&lt;/a&gt;
    &lt;button class="dropdown-btn"&gt;Dropdown
      &lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;
    &lt;/button&gt;
    &lt;div class="dropdown-container"&gt;
      &lt;a href="#"&gt;Link 1&lt;/a&gt;
      &lt;a href="#"&gt;Link 2&lt;/a&gt;
      &lt;a href="#"&gt;Link 3&lt;/a&gt;
    &lt;/div&gt;
    &lt;a href="#contact"&gt;Search&lt;/a&gt;
  &lt;/div&gt;
  
    &lt;/body&gt;
    &lt;script type="text/javascript"&gt;
      var dropdown = document.getElementsByClassName("dropdown-btn");
  var i;
  
  for (i = 0; i &lt; dropdown.length; i++) {
    dropdown[i].addEventListener("click", function() {
      this.classList.toggle("active");
      var dropdownContent = this.nextElementSibling;
      if (dropdownContent.style.display === "block") {
        dropdownContent.style.display = "none";
      } else {
        dropdownContent.style.display = "block";
      }
    });
  } 
    &lt;/script&gt;
    &lt;/head&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is blade of member/add-single-trade/index.blade.php</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@extends('layouts.member')
  @section('content')
  
  &lt;form method="post" action="{{route('member.add-single-trade.store')}}"&gt;
  &lt;div class="container"&gt;
   &lt;div class="row"&gt;
    &lt;div class="col-md-6 form-group"&gt;
     Tradedate:&lt;input type="datetime-local" name="tradedate" class="form-control"&gt;
    &lt;/div&gt;
  
    &lt;div class="col-md-6 form-group"&gt;
     Traderate:&lt;input type="text" name="traderate" class="form-control"&gt;
    &lt;/div&gt;
  
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  @endsection</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can i show member layout sidebar in index.blade.php?
  I need help</p>