laravel if not code example
Example 1: laravel guest blade
//LARAVEL - BLADE:
@guest
// The user is not authenticated...
@endguest
@auth
// The user is authenticated...
@endauth
Example 2: blade if
@if (count($records) === 1)
I have one record!
@elseif (count($records) > 1)
I have multiple records!
@else
I don't have any records!
@endif