comparison resources/views/profile/partials/update-password-form.blade.php @ 0:9d7dcd54c677

Initial Commit and package setup
author luka
date Sat, 23 Aug 2025 22:20:51 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:9d7dcd54c677
1 <section>
2 <header>
3 <h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
4 {{ __('Update Password') }}
5 </h2>
6
7 <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
8 {{ __('Ensure your account is using a long, random password to stay secure.') }}
9 </p>
10 </header>
11
12 <form method="post" action="{{ route('password.update') }}" class="mt-6 space-y-6">
13 @csrf
14 @method('put')
15
16 <div>
17 <x-input-label for="update_password_current_password" :value="__('Current Password')" />
18 <x-text-input id="update_password_current_password" name="current_password" type="password" class="mt-1 block w-full" autocomplete="current-password" />
19 <x-input-error :messages="$errors->updatePassword->get('current_password')" class="mt-2" />
20 </div>
21
22 <div>
23 <x-input-label for="update_password_password" :value="__('New Password')" />
24 <x-text-input id="update_password_password" name="password" type="password" class="mt-1 block w-full" autocomplete="new-password" />
25 <x-input-error :messages="$errors->updatePassword->get('password')" class="mt-2" />
26 </div>
27
28 <div>
29 <x-input-label for="update_password_password_confirmation" :value="__('Confirm Password')" />
30 <x-text-input id="update_password_password_confirmation" name="password_confirmation" type="password" class="mt-1 block w-full" autocomplete="new-password" />
31 <x-input-error :messages="$errors->updatePassword->get('password_confirmation')" class="mt-2" />
32 </div>
33
34 <div class="flex items-center gap-4">
35 <x-primary-button>{{ __('Save') }}</x-primary-button>
36
37 @if (session('status') === 'password-updated')
38 <p
39 x-data="{ show: true }"
40 x-show="show"
41 x-transition
42 x-init="setTimeout(() => show = false, 2000)"
43 class="text-sm text-gray-600 dark:text-gray-400"
44 >{{ __('Saved.') }}</p>
45 @endif
46 </div>
47 </form>
48 </section>