
<div class="breadcrumbs">
    <div class="breadcrumbs-inner">
        <div class="row m-0">
            <div class="col-sm-4">
                <div class="page-header float-left">
                    <div class="page-title">
                        <h1><?= $menu ?></h1>
                    </div>
                </div>
            </div>
            <div class="col-sm-8">
                <div class="page-header float-right">
                    <div class="page-title">
                        <ol class="breadcrumb text-right">
                            <li><a href="<?= base_url() ?>">Dashboard</a></li>
                            <li><a ><?= $menu ?></a></li>
                            <li class="active"><?= $smenu ?></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- PAGE-INDEX-ENDS -->

<!-- PAGE-CONTENT-STARTS -->

<div class="content">
   <div class="animated fadeIn">
      <div class="row">
         <div class="col-lg-12">
           <div class="card">
                    <div class="card-header">
                        <strong class="card-title"><?= $smenu ?></strong>
                    </div>
                    <div class="card-body">
                        <!-- Credit Card -->
                        <div id="pay-invoice">
            <?php 
            $url = (!isset($subcat_id)||empty($subcat_id))
            ?'Sub_category/create_Subcategory':'Sub_category/edit_Subcategory/'.$subcat_id;
            if($this->session->flashdata('message')) { 
            $flashdata = $this->session->flashdata('message'); ?>
            <div class="alert alert-<?= $flashdata['class'] ?>">
              <button class="close" data-dismiss="alert" type="button">×</button>
              <?= $flashdata['message'] ?>
          </div>
          <?php } ?>
           <form role="form"  action="<?=base_url('User/updateUser')?>" method="post" class="validate"  data-parsley-validate="" enctype="multipart/form-data">
              <!-- Basic Details -->
              
             
              <div class="row">
                <div class="col-6">
                
                <div class="form-group">
                  <label>User Name</label>
                  <input type="text" class="form-control required" data-parsley-trigger="change"
                  data-parsley-minlength="2" name="username" required=""
                  data-parsley-pattern="^[a-zA-Z0-9\ . _ @  \/]+$" 
                  value="<?= $admin->username ?>" placeholder="Enter User Name">
                  <span class="glyphicon  form-control-feedback"></span>
                </div>  
              </div>
              <div class="col-md-6">
                <div class="form-group">
                  <label>Profile Picture</label>
                  <div class="col-md-12" style="padding-bottom:10px;">
                    <div class="col-md-3">
                      <img id="image_id" src="<?= base_url($admin->profile_picture) ?>" onerror="this.src='<?=base_url("assets/images/user_avatar.jpg")?>';" height="75" width="75" />
                    </div>
                    <div class="col-md-9" style="padding-top: 25px;">
                      <input name="profile_image" type="file" accept="image/*" onchange="setImg(this,'image_id');" />
                    </div>
                  </div>
                </div>
              </div>
           
              <!-- Change Password -->
              <div class="col-md-12">  
                <div class="box-header with-border padUnset">
                  <h3 class="box-title">Change Password</h3>
                </div><br>
              </div>
              <div class="col-md-6">
                <div class="form-group">
                  <label>New Password</label>
                  <input type="password" class="form-control" name="password" placeholder="New Password">
                  <span class="glyphicon  form-control-feedback"></span>
                </div>  
              </div>
              <div class="col-md-6">
                <div class="form-group">
                  <label>Confirm Password</label>
                  <input type="password" class="form-control" name="cPassword" placeholder="Confirm Password">
                  <span class="glyphicon  form-control-feedback"></span>
                </div>
              </div>
              </div>
                                    <div>
                                       
                                   
                                    <div>   
              <div class="form-group">
                      <div class="row">
                        <div class="col-md-12">
                          <button type="submit" class="btn btn-primary">
                            <i class="fa fa-dot-circle-o"></i> Submit
                          </button>
                       </div>
                    </div>
                  </div>  
                                    </div>
            </form>
        </div>
      </div>
    </div>
</div></div>


<!-- PAGE-CONTENT-ENDS -->
        
        