
<!-- Form Examples area start-->
<div class="form-example-area">
    <div class="container">
        <div class="row">
            <?php
            $success = $this->session->flashdata('success');
            if(isset($success)){  ?>
                <div class="alert alert-success">
                    <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
                    <?php echo $this->session->flashdata('success');?>
                </div>
            <?php } ?>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <form action="<?php echo base_url('admin/Profile/update');?>" method="post"
                      enctype="multipart/form-data">
                    <div class="form-example-wrap">
                        <div class="cmp-tb-hd">
                            <h2>Edit Your Profile</h2>
                            <p></p>
                        </div>
                        <?php
                                $d = $this->db->where('type', 'admin');
                                $d = $this->db->get('users');
                                $data = $d->row();

                        ?>
                        <div class="form-example-int">
                            <div class="form-group">
                                <label>Name</label>
                                <div class="nk-int-st">
                                    <input type="text" name="name" value="<?php echo $data->name;?>" class="form-control input-sm"
                                           placeholder="Name">
                                </div>
                            </div>
                        </div>
                        <div class="form-example-int mg-t-15">
                            <div class="form-group">
                                <label>Email</label>
                                <div class="nk-int-st">
                                    <input type="email" value="<?php echo $data->email;?>" name="email"
                                           class="form-control input-sm" placeholder="Email">
                                </div>
                            </div>
                        </div>
                        <div class="form-example-int mg-t-15">
                            <div class="form-group">
                                    <label>Password</label>
                                <div class="nk-int-st">
                                    <input type="password" value="<?php echo $data->password;?>" name="password"
                                           class="form-control input-sm"
                                           placeholder="Password">
                                </div>
                            </div>
                        </div>

                        <div class="form-example-int mg-t-15">
                            <button class="btn btn-success notika-btn-success" type="submit">UPDATE</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>


    </div>
</div>
<!-- Form Examples area End-->
