How to have dynamic include in Laravel
<p>I'm having a set of html codes present in different blade file in view, I'm trying to add these with <code>foreach</code> loop, but blade template is not able to concatenate the files following is my code:</p>

<pre><code>@foreach($getplugin as $renderer)

    @include('themes.'$template-&gt;theme-&gt;name'.Plugins.'$plugins-&gt;find($renderer)-&gt;type'.'$plugins-&gt;find($renderer)-&gt;id)

@endforeach
</code></pre>

<p>I'm getting following error:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected '$template' (T_VARIABLE), expecting ',' or ')' (View: C:\wamp\www\NitsEditor\resources\views\nitseditor\test.blade.php)</p>
</blockquote>

<p>Please help out with this. Thanks</p>