{{-- Change password modal — same route, request, and client validation as change-password.blade.php. Open from Alpine: @click="$dispatch('open-change-password-modal', '{{ $modalId }}')" Open from JavaScript: window.openChangePasswordModal('{{ $modalId }}'); // or window.dispatchEvent(new CustomEvent('open-change-password-modal', { detail: '{{ $modalId }}' })); --}} @props([ 'role' => null, 'modalId' => 'change-password-modal', ]) @php $role = $role ?: config('auth.defaults.guard'); @endphp @if(isset($trigger)) {{ $trigger }} @endif @push('modals')

{{ __('pages/profile.change_password.description') }}

@csrf @method('PATCH')
{{ __('form.label.current_password') }}
{{ __('form.label.new_password') }}
{{ __('form.label.password_confirmation') }}
{{ __('buttons.cancel') }}
@endpush @once @push('before-app-js') {!! JsValidator::formRequest('App\Http\Requests\ChangePasswordRequest', '#changePasswordModalForm') !!} @vite(['resources/js/common/validation.js', 'resources/js/user/change-password-modal.js']) @endpush @endonce