<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>التأكد من كلمة المرور</title>
        <!-- Bootstrap core CSS -->

        <link href="<?php echo base_url() ?>public/css/custom_css.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo base_url() ?>public/css/style.bundle.rtl.css" rel="stylesheet" type="text/css" />

    </head>

    <body>



        <!-- **********************************************************************************************************************************************************
      
            MAIN CONTENT
      
            *********************************************************************************************************************************************************** -->



        <div id="login-page">

            <div class="container">

                <?php echo form_open('dalel/check_password'); ?>
                <form class="form-login" method="post">

                    <h2 class="form-login-heading centered mt-5">التأكد من كلمة المرور من أجل الدليل <?php echo $dalel[0]->name; ?></h2>
                    <?php if (isset($_SESSION['auth_message']) || validation_errors()) { ?>
                        <div class="alert alert-custom alert-danger fade show mt-4" role="alert">
                            <div class="alert-icon">
                                <i class="flaticon-warning"></i>
                            </div>
                            <div class="alert-text">
                                <?php
                                echo isset($_SESSION['auth_message']) ? $_SESSION['auth_message'] : FALSE;
                                ?>
                                <?php echo validation_errors(); ?>

                                <?php
                                echo isset($_SESSION['login_message']) ? $_SESSION['login_message'] : FALSE;
                                ?>
                            </div>
                            <div class="alert-close">
                                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                    <span aria-hidden="true">
                                        ×
                                    </span>
                                </button>
                            </div>
                        </div>
                    <?php } ?>


                    <div class="login-wrap mt-4">
                        <input type="password" class="form-control" name="password" placeholder="كلمة المرور">
                        <input type="hidden" class="form-control" name="password1" value="<?php echo $password; ?>">
                        <input type="hidden" class="form-control" name="dalel_id" value="<?php echo $dalel[0]->id; ?>">
                        <input type="hidden" class="form-control" name="dalel" value="<?php echo $dalel[0]->name; ?>">
                        <br>

                        <div class="text-center">
                            <button class="btn btn-primary" type="submit"><i class="fa fa-lock"></i> التأكد</button>
                        </div>



                    </div>


                </form>



            </div>

        </div>



        <?php //$this->load->view('dash/shared/footer.php'); ?>



        <script src="<?php echo base_url() ?>public/plugins/global/plugins.bundle.js?v=7.0.5"></script>

    </body>

</html>