if else condition in blade file (laravel 5.3)
laravel, php
Solution
No curly braces required you can directly write
@if($user->status =='waiting')
<td><a href="#" class="viewPopLink btn btn-default1" role="button" data-id="{{ $user->travel_id }}" data-toggle="modal" data-target="#myModal">Approve/Reject<a></td>
@else
<td>{{ $user->status }}</td>
@endif
Problem
I want to check `if`/`else` condition in my blade file. I want to check the condition `$user->status =='waiting'` as the code given below. Output returns correctly as I expected. But along with my output I caught curly braces {} printed. I want to remove curly braces in result. Is there anything wrong in my `if` condition ? ``` @if($user->status =='waiting') { <td><a href="#" class="viewPopLink btn btn-default1" role="button" data-id="{{ $user->travel_id }}" data-toggle="modal" data-target="#myModal">Approve/Reject<a></td> } @else{ <td>{{ $user->status }}</td> } @endif ```