2025-11-29 09:41:38 +09:00
|
|
|
<section>
|
|
|
|
|
<header>
|
|
|
|
|
<h2 class="text-lg font-medium text-gray-900">
|
2025-11-29 12:03:28 +09:00
|
|
|
{{ __('messages.profile.update_password') }}
|
2025-11-29 09:41:38 +09:00
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<p class="mt-1 text-sm text-gray-600">
|
2025-11-29 12:03:28 +09:00
|
|
|
{{ __('messages.profile.update_password_description') }}
|
2025-11-29 09:41:38 +09:00
|
|
|
</p>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<form method="post" action="{{ route('password.update') }}" class="mt-6 space-y-6">
|
|
|
|
|
@csrf
|
|
|
|
|
@method('put')
|
|
|
|
|
|
|
|
|
|
<div>
|
2025-11-29 12:03:28 +09:00
|
|
|
<x-input-label for="update_password_current_password" :value="__('messages.profile.current_password')" />
|
2025-11-29 09:41:38 +09:00
|
|
|
<x-text-input id="update_password_current_password" name="current_password" type="password" class="mt-1 block w-full" autocomplete="current-password" />
|
|
|
|
|
<x-input-error :messages="$errors->updatePassword->get('current_password')" class="mt-2" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
2025-11-29 12:03:28 +09:00
|
|
|
<x-input-label for="update_password_password" :value="__('messages.profile.new_password')" />
|
2025-11-29 09:41:38 +09:00
|
|
|
<x-text-input id="update_password_password" name="password" type="password" class="mt-1 block w-full" autocomplete="new-password" />
|
|
|
|
|
<x-input-error :messages="$errors->updatePassword->get('password')" class="mt-2" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
2025-11-29 12:03:28 +09:00
|
|
|
<x-input-label for="update_password_password_confirmation" :value="__('messages.profile.confirm_password')" />
|
2025-11-29 09:41:38 +09:00
|
|
|
<x-text-input id="update_password_password_confirmation" name="password_confirmation" type="password" class="mt-1 block w-full" autocomplete="new-password" />
|
|
|
|
|
<x-input-error :messages="$errors->updatePassword->get('password_confirmation')" class="mt-2" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center gap-4">
|
2025-11-29 12:03:28 +09:00
|
|
|
<x-primary-button>{{ __('messages.common.save') }}</x-primary-button>
|
2025-11-29 09:41:38 +09:00
|
|
|
|
|
|
|
|
@if (session('status') === 'password-updated')
|
|
|
|
|
<p
|
|
|
|
|
x-data="{ show: true }"
|
|
|
|
|
x-show="show"
|
|
|
|
|
x-transition
|
|
|
|
|
x-init="setTimeout(() => show = false, 2000)"
|
|
|
|
|
class="text-sm text-gray-600"
|
2025-11-29 12:03:28 +09:00
|
|
|
>{{ __('messages.profile.saved') }}</p>
|
2025-11-29 09:41:38 +09:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</section>
|