Complete task 5

This commit is contained in:
Thuan Bui
2025-04-03 10:37:47 +09:00
parent 4b534fd9d5
commit 03db7feece
8 changed files with 1511 additions and 1192 deletions
+7 -3
View File
@@ -1,7 +1,7 @@
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Authenticated?') }}
{{ __("Authenticated?") }}
</h2>
</x-slot>
@@ -11,8 +11,12 @@
<div class="p-6 bg-white border-b border-gray-200">
{{-- Task: add a condition to show correct text --}}
{{-- If user is logged in, show their email --}}
Yes, I am logged in as [insert_user_email_here].
No, I am not logged in.
@auth
Yes, I am logged in as {{ Auth::user()->email }}.
@endauth
@guest
No, I am not logged in.
@endguest
</div>
</div>
</div>