title: Laravel - Blade Template define sections/include
body: <p>Is there a way I don't have to use multiple <code>@include</code> for the tabs for some pages.  </p>
  
  <p>For example I do something like this</p>
  
  <p>In the section/product-tab1.blade.php</p>
  
  <pre><code>&lt;ul class="nav-tabs hidden-xs" role="tablist"&gt;
     &lt;li&gt;&lt;a href="/something1" role="tab"&gt;Category Name 1&lt;/a&gt;&lt;/li&gt;
     &lt;li class="active"&gt;&lt;a href="/something2"&gt;Category Name 2&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>In the section/product-tab2.blade.php</p>
  
  <pre><code>&lt;ul class="nav-tabs hidden-xs" role="tablist"&gt;
     &lt;li&gt;&lt;a href="/something4" role="tab"&gt;Something Name 4&lt;/a&gt;&lt;/li&gt;
     &lt;li class="active"&gt;&lt;a href="/something5"&gt;Something  Name 5&lt;/a&gt;&lt;/li&gt;
     &lt;li class="active"&gt;&lt;a href="/something6"&gt;Something Name 6&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>In the something1.blade.php I would define like this to show tabs:</p>
  
  <pre><code> @include('product-tab1')
  </code></pre>
  
  <p>In the something4.blade.php show tabs:</p>
  
  <pre><code> @include('product-tab2')
  </code></pre>
  
  <p>Also would you use if statement in the view file to define <code>class="active"</code> or not? It will get  defined variable from the controller. </p>