<?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_profil'); ?>" method="POST" enctype="multipart/form-data" />  

						<input type="hidden" name="id" value="<?php echo $rows->id; ?>">
				 	<div class="row">
						<div class="col-sm-5">	
				 			<div class="form-group">
					 			<label for="exampleInputPassword1">Level</label>
					 			<select class="form-control" id="exampleInputPassword1" name="level">
					 				<option value="<?php echo $rows->level; ?>"><?php echo $rows->level; ?></option>
					 				 

					 			</select>  
					 		</div>
					 		<div class="form-group">
					 			<label for="exampleInputPassword1">Posisi Kantor</label>
					 			<select class="form-control" id="exampleInputPassword1" name="id_kantor">

					 				<option value="<?php echo $id_nama_kantor; ?>">  <?php echo $tampil_nama_kantor; ?> </option>






					 				 

					 			</select>  
					 		</div>
						 
						

						</div>
						<div class="col-sm-2">	
						</div>
						<div class="col-sm-4">	
							<img width="100px" src="<?php echo base_url();?>images/admin/<?php  echo $rows->foto;   ?>" alt="<?php  echo $rows->foto;   ?>" class="brand-image img-circle elevation-2" style="opacity: .8">

							<div class="form-group">
								<label for="exampleInputFile">Ganti Foto</label>
								<div class="input-group">

									<input type="file" name="foto">


								</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 -->

 