<?php foreach($kontak as $kontak) :   endforeach; ?>
<?php foreach($admin_login as $user) :   endforeach; ?> 
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
	<!-- Content Header (Page header) -->
	<div class="content-header">
		<div class="container-fluid">
			<div class="row mb-2">
				<div class="col-sm-6">
					<h1 class="m-0 text-dark"> 
						<?php echo $title1; ?>
					</h1>
				</div><!-- /.col -->
				<div class="col-sm-6">
					<ol class="breadcrumb float-sm-right">
						<li class="breadcrumb-item"><a href="#">Home</a></li>
						<li class="breadcrumb-item active"><?php echo $title1; ?></li>
					</ol>
				</div><!-- /.col -->
			</div><!-- /.row -->
		</div><!-- /.container-fluid -->
	</div>
	<!-- /.content-header -->
	
	
	<!-- Main content -->
	<section class="content">
		<div class="container-fluid">
			<div class="card">
				<div class="card-header">
				 PROFILE

				</div>
				<!-- /.card-header -->
				<div class="card-body">
					<?php foreach($admin_login as $rows) : ?> 
						<?php 
									$id_kantor = $rows->id_kantor; 
									$sql_menu = "SELECT * FROM tb_kantor WHERE  id_kantor = '$id_kantor' ";
									$main_menu = $this->db->query($sql_menu)->result();
									foreach ($main_menu as $main) {
									 
										$id_nama_kantor= $main->id_kantor;
										$tampil_nama_kantor= $main->nama_kantor;
										
									}
									?>
					<form class="form-horizontal" action="<?php echo base_url('admin/code_ubah_pass'); ?>" method="POST" enctype="multipart/form-data" />  

						<input type="hidden" name="id" value="<?php echo $rows->id; ?>">
				 	<div class="row">
						<div class="col-sm-8">	
							<div class="form-group">
								<label class="col-md-3 control-label">Password Lama</label>
								<div class="col-md-9">                                            
									<div class="input-group">
										<input type="hidden" class="form-control" name="id" required="" value="<?php echo $rows->id; ?>"/>
										<input type="hidden" class="form-control" name="password" required="" value="<?php echo $rows->password; ?>"/>
										<input type="Password"  class="form-control" name="old_password"   required="" />
									</div>                                            

								</div>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">Password Baru</label>
								<div class="col-md-9">                                            
									<div class="input-group">

										<input type="Password"  class="form-control" name="new_password1"   required="" />
									</div>                                            

								</div>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">Verifikasi Password Baru</label>
								<div class="col-md-9">                                            
									<div class="input-group">

										<input type="Password"  class="form-control" name="new_password2"   required="" />
									</div>                                            

								</div>
							</div>
						 
							<button type="submit" class="btn btn-primary">Simpan</button>

						</div>
						 
						 
					</div>
					</form>
					<?php  endforeach; ?>
				</div>
				<!-- /.card-body -->
			</div>
		</div><!-- /.container-fluid -->
	</section>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->

 