<?php echo $this->session->flashdata("k_password"); ?>
<div class="container">
    <div class="card border-1 col-lg">
        <form action="<?php echo base_url('dashboard/password/simpan') ?>" method="post" class="user">
            <div class="form-group">
                <center><?php if ($user->foto != NULL or $user->foto != '') { ?>
                    <img src="<?php echo base_url('gambar/' . $user->foto); ?>" class="img img-fluid" alt="User Image"
                        style="max-height: 200px;">
                    <?php } else { ?>
                    <img src="<?php echo base_url() ?>gambar/nophoto.png" class="img img-fluid" alt="User Image"
                        style="max-height: 100px;">
                    <?php } ?>
                </center>
            </div>
            <div class="form-group">
                <label>Username</label>
                <input type="text" style="font-weight: bold" class="form-control form-control-user" name="username"
                    value="<?php echo $user->username ?>" readonly="readonly" />
            </div>
            <div class="form-group">
                <label>Password Lama</label>
                <input type="password" class="form-control form-control-user" name="p1" id="p1"
                    placeholder="password lama" value="" required="required" />
            </div>
            <div class="form-group">
                <label>Password Baru</label>
                <input type="password" class="form-control form-control-user" name="p2" id="p2"
                    placeholder="password baru" value="" required="required" />
            </div>
            <div class="form-group">
                <label>Konfirmasi Password Baru</label>
                <input type="password" class="form-control form-control-user" name="p3" id="p3"
                    placeholder="konfirmasi password baru" value="" required="required" />
            </div>
            <div class="form-group">
                <button type="submit" class="btn btn-primary btn-user btn-block">Save</button>
            </div>
        </form>
    </div>
</div>