<!-- Begin Page Content -->
<div class="container-fluid">

  <!-- Page Heading -->
  <h1 class="h3 mb-4 text-gray-800"><?= $title ?></h1>

  <div class="card mb-3" style="max-width: 540px;">
    <div class="row no-gutters">
      <div class="col-md-4">
        <img src="<?= base_url('assets/img/profile/') . $user['image']; ?>" class="card-img img-fluid">
      </div>
      <div class="col-md-8">
        <div class="card-body">
          <h5 class="card-title"><?= $user['name'] ?></h5>
          <p class="card-text"><?= $user['name'] ?></p>
          <p class="card-text"><small class="text-muted">Daftar pada <?php echo date('d F Y', $user['date_created']) ?></small></p>
          <p class="card-text"><small class="text-muted">
              <?php
              if ($user['role_id'] == 1) {
                echo "Administrator";
              } elseif ($user['role_id'] == 2) {
                echo "Verifikator";
              }
              ?>
            </small>
          </p>
        </div>
      </div>
      <div class="col-md-6 p-3">
        <a href="<?= base_url('User/Pass') ?>" class="btn btn-warning btn-block text-white"> <i class="fa fa-lock" aria-hidden="true"></i> Ganti Password</a>
      </div>
      <div class="col-md-6 p-3">
        <a href="<?= base_url('User/EditEmail') ?>" class="btn btn-info btn-block"> <i class="fas fa-edit"></i>Edit User</a>
      </div>
    </div>
  </div>

</div>
<!-- /.container-fluid -->

</div>
<!-- End of Main Content -->