![laravel - How can i include partial view conditionally according to the passing array from controller or not - Stack Overflow laravel - How can i include partial view conditionally according to the passing array from controller or not - Stack Overflow](https://i.stack.imgur.com/wlDb2.png)
laravel - How can i include partial view conditionally according to the passing array from controller or not - Stack Overflow
![You can use @includeWhen to include certain Blade partials when some condition is met. For instance, when the current user is an admin | Laravel Code Tips You can use @includeWhen to include certain Blade partials when some condition is met. For instance, when the current user is an admin | Laravel Code Tips](https://pbs.twimg.com/media/FI47GaYXMAI7SeA.jpg?name=large)
You can use @includeWhen to include certain Blade partials when some condition is met. For instance, when the current user is an admin | Laravel Code Tips
![Loop over and include Blade views simultaneously using @each in Laravel — Amit Merchant — A blog on PHP, JavaScript, and more Loop over and include Blade views simultaneously using @each in Laravel — Amit Merchant — A blog on PHP, JavaScript, and more](https://www.amitmerchant.com/cdn/loop-over-and-include-blade-templates-using-each-in-laravel.png)