![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
![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://i.useflipp.com/g6demrp3y3rz.png?content=You+can+use+%40includeWhen+to+include+certain+Blade+partials+when+some+condition+is+met.+For+instance%2C+when+the+current+user+is+an+admin)