  <?php echo $this->session->flashdata("k"); ?>

  <div class="container">
      <div class="card border-1 col-lg">
          <form action="<?php echo base_url('dashboard/foto/act_edit'); ?>" method="post" accept-charset="utf-8"
              enctype="multipart/form-data" 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>Nama</label>
                  <input type="text" style="font-weight: bold" class="form-control form-control-user" name="nama"
                      value="<?php echo $user->namasatker ?>" readonly="readonly" />
              </div>
              <div class="form-group">
                  <label>Upload Foto</label>
                  <input type="file" class="form-control-file" name="foto">
                  <label><sup>*untuk foto ukuran maksimal 512kb dan resolusi maksimal 1024px * 1024px</sup></label>
              </div>
              <div class="form-group">
                  <button type="submit" class="btn btn-primary btn-user btn-block">Save</button>
              </div>
          </form>
      </div>
  </div>