Hello i am new to laravel framework and i am learning this framework and i am using blade templating engine for the separating the code.i have creating 2 file like sidebar.blade.php and footer.blade.php and i have to call both the file in my index .php but it's not working. my file is in my-project/layout/sidebar.blade.php folder
here is my code: index.php
<body class="nav-md">
<div class="container body">
<div class="main_container">
@include('layouts.sidebar')
</div>
</div>
</body>
sidebar.blade.php
<!-- footer content -->
<footer>
<div class="pull-right">
Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>
</div>
<div class="clearfix"></div>
</footer>
<!-- /footer content -->
result :