title: Laravel @include a blade view via ajax
body: <p>I have a page which will @include some content, I want to @include that blade view file using ajax request. How should I do it. </p>
  
  <p>Basically, the view file will get the items from server, </p>
  
  <pre><code>**price.blade.php**
  @foreach ($items as $item)
  &lt;div class="item-post"&gt;
    &lt;div class="priceofitem"&gt;{{ $item-&gt;price }} &lt;/div&gt;
  </code></pre>
  
  <p>I want to include @include('price.blade.php') in my tab section</p>
  
  <pre><code>&lt;ul class="tabs"&gt;
  &lt;li&gt;&lt;a href="#tab1"&gt;Prices &lt;/li&gt;
  &lt;div id="tab1"&gt;@include('price.blade.php')&lt;/div&gt;
  </code></pre>
  
  <p>I don't want to include that view file automatically upon load, as I don't want to load that tab's content unless the user clicks on it, if the user wants the prices than the user clicks on that tab, and an AJAX request will be sent to include that file. </p>
  
  <p>Hope I made myself clear, please let me know if you did not understand me. </p>
  
  <p>Fingers crossed</p>