<?php

?>

<div class="row">
    <!-- [ sample-page ] start -->
    <div class="col-sm-12">
        <div class="card">
            <div class="card-header pb-0">
                <ul class="nav nav-tabs profile-tabs" id="myTab" role="tablist">
                    <li class="nav-item">
                        <a class="nav-link active" id="profile-tab-4" data-bs-toggle="tab" href="#profile-4" role="tab"
                           aria-selected="true">
                            <i class="ti ti-lock me-2"></i>Сменить пароль
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" id="profile-tab-6" data-bs-toggle="tab" href="#profile-6" role="tab"
                           aria-selected="true">
                            <i class="ti ti-settings me-2"></i>Настройки
                        </a>
                    </li>
                </ul>
            </div>
            <div class="card-body">
                <div class="tab-content">
                    <div class="tab-pane show active" id="profile-4" role="tabpanel" aria-labelledby="profile-tab-4">
                        <div class="card">
                            <div class="card-header">
                                <h5>Смена пароля</h5>
                            </div>
                            <div class="card-body">
                                <div class="row">
                                    <form action="/lk/settings/change_password" method="post" id="change_password">
                                        <div class="col-sm-6">
                                            <div class="form-group">
                                                <label class="form-label">Старый пароль</label>
                                                <input name="old_password" type="password" class="form-control">
                                            </div>
                                            <div class="form-group">
                                                <label class="form-label">Новый пароль</label>
                                                <input name="new_password" type="password" class="form-control">
                                            </div>
                                        </div>
                                    </form>
                                    <div class="col-sm-6">
                                        <h5>Пароль должен содержать:</h5>
                                        <ul class="list-group list-group-flush">
                                            <li class="list-group-item"><i class="ti ti-minus me-2"></i> Не менее 8
                                                символов
                                            </li>
                                            <li class="list-group-item"><i class="ti ti-minus me-2"></i> Как минимум 1
                                                строчная буква (a-z)
                                            </li>
                                            <li class="list-group-item"><i class="ti ti-minus me-2"></i> Как минимум, 1
                                                заглавная буква
                                                (A-Z)
                                            </li>
                                            <li class="list-group-item"><i class="ti ti-minus me-2"></i> Не менее 1
                                                числа (0-9)
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="card-footer text-end btn-page">
                                <a href="/lk">
                                    <div class="btn btn-outline-secondary">Отмена</div>
                                </a>
                                <button onclick="document.getElementById('change_password').submit()"
                                        class="btn btn-primary">
                                    Редактировать
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="profile-6" role="tabpanel" aria-labelledby="profile-tab-6">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="card">
                                    <div class="card-header">
                                        <h5>Настройки почты</h5>
                                    </div>
                                    <div class="card-body">
                                        <h6 class="mb-4">Уведомления</h6>
                                        <form action="/lk/settings/save_notification" method="post">
                                            <div class="d-flex align-items-center justify-content-between mb-1">
                                                <div>
                                                    <p class="text-muted mb-0">Email уведомления</p>
                                                </div>
                                                <div class="form-check form-switch p-0">
                                                    <input name="email_notification" class="m-0 form-check-input h5 position-relative"
                                                           type="checkbox"
                                                           role="switch" checked="">
                                                </div>
                                            </div>
                                            <div class="d-flex align-items-center justify-content-between mb-1">
                                                <div>
                                                    <p class="text-muted mb-0">SMS уведомления</p>
                                                </div>
                                                <div class="form-check form-switch p-0">
                                                    <input name="sms_notification" class="m-0 form-check-input h5 position-relative"
                                                           type="checkbox"
                                                           role="switch">
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>

                            <div class="col-12 text-end btn-page">
                                <a href="/lk">
                                    <div class="btn btn-outline-secondary">Отмена</div>
                                </a>
                                <button onclick="document.getElementById('change_password').submit()"
                                        class="btn btn-primary">
                                    Редактировать
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- [ sample-page ] end -->
</div>
