Użyj, jeśli w Blade Laravel
@if($user->status =='active')
<td>{{ $user->name }}</td>
@else
<td> Guest </td>
@endif
ssbrar
@if($user->status =='active')
<td>{{ $user->name }}</td>
@else
<td> Guest </td>
@endif
@forelse ($array as $value)
{{ $value }}
@empty
<p>no values in array</p>
@endforelse
@if (count($records) === 1)
I have one record!
@elseif (count($records) > 1)
I have multiple records!
@else
I don't have any records!
@endif
@if($name != '')
{{'Name is not empty!'}}
@else
{{"Name is empty!"}}
@endif
//LARAVEL - BLADE:
@guest
// The user is not authenticated...
@endguest
@auth
// The user is authenticated...
@endauth
@if (count($sliderData) > 0)
{{'data'}}
@else
{{'data not found'}}
@endif