mirror of
https://github.com/10h30/Test-Laravel-Blade-Basics.git
synced 2026-07-18 14:13:47 +09:00
Complete task 5
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user