<?php include 'layouts/session.php'; ?>
<?php include 'layouts/head-main.php'; ?>

<head>

    <title>Verification | PosPlatter</title>
    <?php include 'layouts/title-meta.php'; ?>
    <link href="assets/libs/sweetalert2/sweetalert2.min.css" rel="stylesheet" type="text/css" />
    <?php include 'layouts/head-css.php'; ?>

</head>

<?php include 'layouts/body.php'; ?>

<!-- auth-page wrapper -->
<div class="auth-page-wrapper min-vh-100">

    <!-- auth-page content -->

    <div class="auth-page-content overflow-hidden pt-lg-5">
        <div class="container">
            <div class="row">

                <div class="col-12 d-flex justify-content-center">
                    <div class="col-5">


                        <div class="card p-5">


                            <div class="card-body">
                                <div>

                                    <div id="div-message" class="alert alert-danger" role="alert" style="display: none">

                                    </div>
                                    <div>

                                        <div class="mb-4">
                                            <div class="avatar-lg mx-auto">
                                                <div class="avatar-title bg-light text-primary display-5 rounded-circle">
                                                    <i class="ri-mail-line"></i>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="text-muted text-center mx-lg-3">
                                            <h4 class="">Verify Your Email</h4>
                                            <p>Please enter the 4 digit code sent to <span class="fw-semibold" id="span-email">example@abc.com</span></p>
                                        </div>

                                        <div class="mt-5 mb-4">
                                            <div class="row">
                                                <div class="col-3">
                                                    <div class="mb-3">
                                                        <label for="digit1-input" class="visually-hidden">Dight 1</label>
                                                        <input type="text"
                                                               class="form-control form-control-lg bg-light border-light text-center"
                                                               onkeyup="moveToNext(this, 2)" maxLength="1"
                                                               id="digit1-input">
                                                    </div>
                                                </div><!-- end col -->

                                                <div class="col-3">
                                                    <div class="mb-3">
                                                        <label for="digit2-input" class="visually-hidden">Dight 2</label>
                                                        <input type="text"
                                                               class="form-control form-control-lg bg-light border-light text-center"
                                                               onkeyup="moveToNext(this, 3)" maxLength="1"
                                                               id="digit2-input">
                                                    </div>
                                                </div><!-- end col -->

                                                <div class="col-3">
                                                    <div class="mb-3">
                                                        <label for="digit3-input" class="visually-hidden">Dight 3</label>
                                                        <input type="text"
                                                               class="form-control form-control-lg bg-light border-light text-center"
                                                               onkeyup="moveToNext(this, 4)" maxLength="1"
                                                               id="digit3-input">
                                                    </div>
                                                </div><!-- end col -->

                                                <div class="col-3">
                                                    <div class="mb-3">
                                                        <label for="digit4-input" class="visually-hidden">Dight 4</label>
                                                        <input type="text"
                                                               class="form-control form-control-lg bg-light border-light text-center"
                                                               onkeyup="moveToNext(this, 4)" maxLength="1"
                                                               id="digit4-input">
                                                    </div>
                                                </div><!-- end col -->
                                            </div>
                                        </div>

                                    </div>

                                    <div class="d-flex justify-content-center mt-4">
                                        <button type="button" id="btn-continue" class="btn btn-success btn-label right  w-100">
                                            <i id="myIcon"  class="ri-arrow-right-line label-icon align-middle fs-16 ms-2"></i>Confirm
                                        </button>
                                    </div>

                                    <div class="mt-3 text-center">
                                        <p class="mb-0">Wait, I remember my password...  <a href="login.php" class="fw-semibold text-primary text-decoration-underline">Login</a> </p>
                                    </div>


                                </div>
                            </div>

                            <!-- end card body ri-loader-2-line -->

                        </div>

                    </div>
                    <!-- end card -->
                </div>
                <!-- end col -->

            </div>
            <!-- end row -->
        </div>
        <!-- end container -->
    </div>
    <!-- end auth page content -->

    <!-- footer -->
    <footer class="footer start-0">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="text-center">
                        <p class="mb-0">&copy;
                            <script>
                                document.write(new Date().getFullYear())
                            </script>
                            PosPlatter. Crafted with <i class="mdi mdi-heart text-danger"></i> by KodingStudio
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </footer>
    <!-- end Footer -->
</div>
<!-- end auth-page-wrapper -->

<?php include 'layouts/vendor-scripts.php'; ?>


<?php include 'layouts/realtime-db-scripts.php'; ?>

<script src="assets/libs/sweetalert2/sweetalert2.min.js"></script>
<!-- password create init -->
<script src="assets/js/pages/verification.init.js"></script>

</body>

</html>