<?php
	include('common/header.php');
?>
<div class="">
	<div class="col-xm-12">
		<div class="widget-box light-border">
			<!-- <div class="widget-header header-color-grey">
				<h4 class="smaller">
					State View 
				</h4>
			</div> -->
			<div class="widget-body">
				<div class="widget-main">
					<div class="row">
						<div class="col-sm-12">
							<form class="form-horizontal" role="form">
							<div class="">
								<!-- PAGE CONTENT BEGINS -->	
								<div class="profile-user-info">
									<?php 
                       				 foreach ($profile as $value) {
                          				$user_name 	= $value['user_name'];
                          				$first_name = $value['first_name'];
                          				$last_name  = $value['last_name'];
                          				$accessible_branches = $value['accessible_branches'];
                          				$email_id = $value['email_id'];
                          				$designation = $value['designation'];
                          				$mobile_no 	 = $value['mobile_no'];
                          				$company_branch_name = $value['company_branch_name'];
                          				$address     = $value['address'];
                          				$state       = $value['state'];
                          				$city 		 = $value['city'];
                          				$pincode 	 = $value['pincode'];
                          				$user_type 	 = $value['user_type'];
                          				$city 		 = $value['city'];
                         			?>
                         			<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'User Name: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
											<?php	 
											     if ($user_name!='') {
											     	echo $user_name;
											     }else{
											     	echo '-';
											     }
												
												echo form_hidden('admin_type_code','');
											?>
												
											</span> 
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'User Type: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($user_type!='') {
               										echo $user_type; 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Person Name: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											     if ($first_name!='') {
											     	echo $first_name." ".$last_name;
											     }else{
											     	echo '-';
											     }
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Company Branch Name: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											     if ($company_branch_name!='') {
											     	echo $company_branch_name;
											     }else{
											     	echo '-';
											     }
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Accessible Branch : '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($accessible_branches!='') {
               										echo $ac_branches=fetch_accessible_branch($accessible_branches); 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Email Id : '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($email_id!='') {
               										echo $email_id; 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

								    <div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Designation : '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($designation!='') {
               										echo $designation; 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Mobile Number: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($mobile_no!='') {
               										echo $mobile_no; 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									<!--<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Address: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($address!='') {
               										echo $address; 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'State: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($state!='') {
               										echo $state; 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'City: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($city!='') {
               										echo $city; 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Pincode: '; ?></div>
										<div class="profile-info-value">
										 	<span>			
								              <?php  
											    if($pincode!='') {
               										echo $pincode; 
            									}else{
            										echo '-';
            									} 
												
												echo form_hidden('admin_type_code','');
								
											  ?>
											 </span> 
										</div>	
									</div>-->


								<?php } ?>
								</div>
							</div>
							</form>	
						</div>
					</div>
				</div>	
			</div>
		</div>
	</div>
    <!-- /.col -->
</div>
<div class="clearfix form-actions">
	<div class="col-md-5" style="margin-left: 142px">
		<button class="btn btn-info" type="button" onclick="javascript:window.history.back();">
			Back
		</button>
	</div>
</div>
<div class="space-4"></div>
	<!-- /.page-row -->
    <!-- /.page-content --> 
</div>
<!-- /.main-content -->  
</div>
<!-- /#ace-settings-container --> 
</div>
<!-- /.main-container-inner --> 
<?php
	include('common/footer.php');
?>