@extend('layout')
@section('title')Şifremi Değiştir - {{ beGetConfig('sitename') }}@endsection
@section('headerinclude')
<link href="assets/betheme/css/clientarea.css?ver=19" rel="stylesheet">
<link href="assets/betheme/css/card.css?ver=12" rel="stylesheet">
<link href="assets/betheme/css/col.css?ver=14" rel="stylesheet">
<link href="assets/betheme/css/forms.css?ver=19" rel="stylesheet">
<link href="assets/betheme/css/index.css?ver=11" rel="stylesheet">
@endsection
@section('content')
<div class="container bclientarea">
    <div class="col-12">
        <div class="card">
            <div class="card-header">
                <div>
                    <span class="card-title"><i class="ri-logout-box-line"></i> Şifre Yenileme</span>
                </div>
            </div>
            <div class="card-content">
                <form id="beLoginForm">
                    <div class="row">
                        <div class="col-12 mb-2">
                            <div class="form-group">
                                <label for="password1">Yeni Şifre<span class="text-danger">*</span></label>
                                <div class="form-input-area">
                                    <input type="text" class="form-control set-password" id="password1"  required="required">
                                    <button class="btn btn-special beCreatePassword" data-area=".set-password">Şifre Üret</button>
                                </div>
                            </div>
                        </div>
                        <div class="col-12 mb-5">
                            <div class="form-group">
                                <label for="password2">Yeni Şifre Tekrar<span class="text-danger">*</span></label>
                                <input type="password" class="form-control set-password" id="password2" required="required">
                            </div>
                        </div>
                        <div class="col-12 row-center row-flex">
                            <a href="#" class="btn btn-special resetPassword">Şifremi Değiştir</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
@section('js')
<script>
    $(".resetPassword").on("click",function(){
        beClassRequestItem($(this),"{{ beGetRoute('auth.changepassword.post') }}",{code:"{{ $verification['vcode'] }}",password1:$("#password1").val(),password2:$("#password2").val()});							
        return false;
    });
</script>
@endsection