|
0
|
1 <section>
|
|
|
2 <header>
|
|
|
3 <h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
|
|
4 {{ __('Profile Information') }}
|
|
|
5 </h2>
|
|
|
6
|
|
|
7 <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
|
|
|
8 {{ __("Update your account's profile information and email address.") }}
|
|
|
9 </p>
|
|
|
10 </header>
|
|
|
11
|
|
|
12 <form id="send-verification" method="post" action="{{ route('verification.send') }}">
|
|
|
13 @csrf
|
|
|
14 </form>
|
|
|
15
|
|
|
16 <form method="post" action="{{ route('profile.update') }}" class="mt-6 space-y-6">
|
|
|
17 @csrf
|
|
|
18 @method('patch')
|
|
|
19
|
|
|
20 <div>
|
|
|
21 <x-input-label for="name" :value="__('Name')" />
|
|
|
22 <x-text-input id="name" name="name" type="text" class="mt-1 block w-full" :value="old('name', $user->name)" required autofocus autocomplete="name" />
|
|
|
23 <x-input-error class="mt-2" :messages="$errors->get('name')" />
|
|
|
24 </div>
|
|
|
25
|
|
|
26 <div>
|
|
|
27 <x-input-label for="email" :value="__('Email')" />
|
|
|
28 <x-text-input id="email" name="email" type="email" class="mt-1 block w-full" :value="old('email', $user->email)" required autocomplete="username" />
|
|
|
29 <x-input-error class="mt-2" :messages="$errors->get('email')" />
|
|
|
30
|
|
|
31 @if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! $user->hasVerifiedEmail())
|
|
|
32 <div>
|
|
|
33 <p class="text-sm mt-2 text-gray-800 dark:text-gray-200">
|
|
|
34 {{ __('Your email address is unverified.') }}
|
|
|
35
|
|
|
36 <button form="send-verification" class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800">
|
|
|
37 {{ __('Click here to re-send the verification email.') }}
|
|
|
38 </button>
|
|
|
39 </p>
|
|
|
40
|
|
|
41 @if (session('status') === 'verification-link-sent')
|
|
|
42 <p class="mt-2 font-medium text-sm text-green-600 dark:text-green-400">
|
|
|
43 {{ __('A new verification link has been sent to your email address.') }}
|
|
|
44 </p>
|
|
|
45 @endif
|
|
|
46 </div>
|
|
|
47 @endif
|
|
|
48 </div>
|
|
|
49
|
|
|
50 <div class="flex items-center gap-4">
|
|
|
51 <x-primary-button>{{ __('Save') }}</x-primary-button>
|
|
|
52
|
|
|
53 @if (session('status') === 'profile-updated')
|
|
|
54 <p
|
|
|
55 x-data="{ show: true }"
|
|
|
56 x-show="show"
|
|
|
57 x-transition
|
|
|
58 x-init="setTimeout(() => show = false, 2000)"
|
|
|
59 class="text-sm text-gray-600 dark:text-gray-400"
|
|
|
60 >{{ __('Saved.') }}</p>
|
|
|
61 @endif
|
|
|
62 </div>
|
|
|
63 </form>
|
|
|
64 </section>
|