Laravel Blade Inline If Statement

Last Updated: May 26, 2021

How to write the inline if statement in Laravel Blade templating .

<div  @if($city->slug) style="font-weight:600"  @endif>
In line If statement
</div>