Blade Conditional Statement
All the basic syntax of conditional statement is same for if, if else, else if, but we have to start with @ symbol. In Laravel there is one new statement for negation i.e. unless that check for negative value
@unless($name==’shairy’)
<p> Name is not shairy </p>
@endunless
For example:
<html>
<head>
<title>Laravel Practice</title>
</head>
<body class=”container”>
<div class=”row”>
<div class=”card col-md-8 mt-5 mx-auto”>
<h1> Welcome {{$name}} </h1>
@if($contact==8054583502)
<p> This is correct Number of Shairy</p>
@endif
</div>
</div>
</body>
</html>