Solution for "blade if systax"

@if($user->status =='active') <td>{{ $user->name }}</td> @else <td> Guest </td> @endif

use if in laravel blade

@if (count($records) === 1) I have one record! @elseif (count($records) > 1) I have multiple records! @else I don't have any records! @endif

blade if

Similar codes for "blade if systax"


Latest 'PHP' questions

Added before "blade if systax"