If you do this, you will receive an error message:
<p>@if($foo)@if($bar)test@endif@endif</p>
And if you do this, you will get <p> test </p> by adding too much white:
<p>@if($foo) @if($bar)test@endif @endif</p>
Is there any way to avoid this?
Edit: see my answer below for an updated answer. There is a clean way to do this without hacks or external libraries.
php laravel blade
Citizen
source share