Append blade file to jquery function
问题 IS there any way to achieve this: <script> $('#appends').append('<div class="content-section" id="services">' + " @include('visitor.pages.services') " + ' </div>'); </script> What i want is to append the content of visitor.pages.services to #appends div visitor.pages.services is not a php url or something. It is just some lines of html where i am including in my main page. this is the file <div class="container"> <div class="row"> <div class="heading-section col-md-12 text-center"> <h2>Our