<div class="tab-pane fade" id="delete_account_tab">
    <div class="row">
        <div class="col-12">

            <div class="d-flex justify-content-between align-items-center">
                <h3>{{__('profile.delete_account')}}</h3>
            </div>
            <hr>
            <div class="row">
                <div class="col-xl-12">
                    <div class="account_profile_wrapper p-4 align-items-center">
                        <div class="account_profile_thumb text-center mb_30">
                            <div class=" mb-15">
                                <img class="w-100 h-100"
                                     src="{{assetPath('frontend/infixlmstheme/img/account/delete_account.png')}}"
                                     alt="">
                            </div>
                        </div>
                        <div class="account_profile_form">
                            <div class="account_title">
                                <h3 class="font_22 f_w_700 ">{{__('profile.delete_account_request')}}</h3>
                                <p class="mb_25 font_1 f_w_500 theme_text2">{{__('student.If you delete your account, your data will be gone forever')}}
                                </p>
                            </div>

                            <div class="row">
                                <div class="col-lg-12">
                                    <label class="primary_label2">{{__('student.Email Address')}}</label>
                                    <div class="">
                                        <input name="email" placeholder="{{__('student.Email Address')}}"
                                               value="{{@$user->email}}"
                                               onfocus="this.placeholder = ''"
                                               readonly
                                               onblur="this.placeholder = '{{__('student.Email Address')}}'"
                                               class="primary_input" type="email">

                                    </div>
                                </div>
                                <div class="col-12">
                                    <div class=" mb_30 ">
                                    </div>
                                </div>
                            </div>
                            <form action="{{route('users.account.delete')}}" method="POST">
                                @csrf
                                <div class="row">
                                    <div class="col-lg-12 mb_20">
                                        <span class="primary_label2">{{__('frontend.Existing Password')}} <span
                                                class="text-danger">*</span></span>
                                        <input type="password" placeholder="{{__('student.Type existing password')}}"
                                               class="primary_input  {{ @$errors->has('existing_password') ? ' is-invalid' : '' }}"
                                               name="old_password" {{$errors->has('old_password') ? 'autofocus' : ''}}>


                                    </div>


                                    <div class="col-12 ">
                                        <button type="submit"
                                                class="theme_btn mt-3 text-center">{{__('student.Delete account')}}</button>
                                    </div>
                                </div>

                            </form>

                        </div>
                    </div>
                </div>


            </div>

        </div>
    </div>
</div>
