<h5 class="title pb-3">@lang('profile.modal.header.update_password.title')</h5>

<form action="{{ route('profile.password.update') }}" method="post" async-form on-async-modal>
    @csrf

    @method('put')

    <div class="row gy-4">
        <div class="col-md-12">
            <div class="form-group">
                <div class="form-label-group">
                    <label class="form-label" for="old_password">@lang('profile.update_password.form.old_password.label')</label>
                </div>
                <div class="form-control-wrap">
                    <a href="javascript:void(0);" class="form-icon form-icon-right passcode-switch lg" data-target="old_password" tabindex="-1">
                        <em class="passcode-icon icon-show icon ni ni-eye"></em>
                        <em class="passcode-icon icon-hide icon ni ni-eye-off"></em>
                    </a>
                    <input type="password" class="form-control form-control-lg" id="old_password" name="old_password" required autofocus placeholder="@lang('profile.update_password.form.old_password.placeholder')">
                    <span class="invalid-feedback" role="alert"></span>
                </div>
            </div>
        </div>
        <div class="col-md-12">
            <div class="form-group">
                <div class="form-label-group">
                    <label class="form-label" for="password">@lang('profile.update_password.form.new_password.label')</label>
                </div>
                <div class="form-control-wrap">
                    <a href="javascript:void(0);" class="form-icon form-icon-right passcode-switch lg" data-target="password" tabindex="-1">
                        <em class="passcode-icon icon-show icon ni ni-eye"></em>
                        <em class="passcode-icon icon-hide icon ni ni-eye-off"></em>
                    </a>
                    <input type="password" class="form-control form-control-lg" id="password" name="password" required autofocus placeholder="@lang('profile.update_password.form.new_password.placeholder')">
                    <span class="invalid-feedback" role="alert"></span>
                </div>
            </div>
        </div>
        <div class="col-md-12">
            <div class="form-group">
                <div class="form-label-group">
                    <label class="form-label" for="password_confirmation">@lang('profile.update_password.form.confirm_password.label')</label>
                </div>
                <div class="form-control-wrap">
                    <a href="javascript:void(0);" class="form-icon form-icon-right passcode-switch lg" data-target="password_confirmation" tabindex="-1">
                        <em class="passcode-icon icon-show icon ni ni-eye"></em>
                        <em class="passcode-icon icon-hide icon ni ni-eye-off"></em>
                    </a>
                    <input type="password" class="form-control form-control-lg" id="password_confirmation" name="password_confirmation" required autofocus
                        placeholder="@lang('profile.update_password.form.confirm_password.placeholder')">
                    <span class="invalid-feedback" role="alert"></span>
                </div>
            </div>
        </div>
        <div class="col-12">
            <ul class="align-center flex-wrap flex-sm-nowrap gx-4 gy-2">
                <li><button type="submit" class="btn btn-lg btn-primary">@lang('global.form.button.save')</button></li>
                <li><button type="button" class="btn btn-lg btn-outline-danger" async-modal-close>@lang('global.form.button.cancel')</button></li>
            </ul>
        </div>
    </div>
</form>
