<?php
	include('common/header.php');
?>
<div class="">
	<div class="col-xm-12">
		<div class="widget-box light-border">
			
			<div class="widget-body">
				<div class="widget-main">
					<div class="row">
						<div class="col-sm-12">
							<form class="form-horizontal" role="form">
							<div class="">
								<?php 
 									foreach ($customer1 as  $value) {?>
								<!-- PAGE CONTENT BEGINS -->	
								<div class="profile-user-info">
									
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Branch Company Name : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
											  	if ($value['company_branch_name']!='') {
											  		echo $value['company_branch_name'];
											  	}else{
											  		echo '-';
											  	}	
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>

								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Customer Name : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['customer_name']!='') {
													echo $value['customer_name'];
												}else{
													echo '-';
												}	
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>
								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Sales person Name : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php	
											    if ($value['first_name']!='' || $value['last_name']!='') {
											    	echo $value['first_name']." ".$value['last_name'];
											    }else{
											    	echo '-';
											    }
												
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>

								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Customer Address : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php	
											 	if ($value['address_line1']!='' || $value['address_line2']!='') {
											 		echo $value['address_line1']." ".$value['address_line2'];
											 	}else{
											 		echo '-';
											 	}
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>


								<div class="profile-user-info">

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

								<div class="profile-user-info">

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

							    <div class="profile-user-info">

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

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

								<div class="profile-user-info">

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Customer PAN Number: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
											if ($value['customer_pan_no']!='') {
												echo $value['customer_pan_no'];
											}else{
												echo '-';
											}
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>
								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Customer GST Number: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php	
											if ($value['customer_gst_no']!='') {
												echo $value['customer_gst_no'];
											}else{
												echo '-';
											}
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>
								
								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Date of enrollment : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['date_of_enrollment']!='') {
														echo $value['date_of_enrollment'];
												}else{
													echo '-';
												}	
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>
									<?php }
 									foreach ($customer as  $value) {?>
								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Contact Person Name: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['contact_person_name']!='') {
													echo $value['contact_person_name'];
												}else{
													echo '-';
												}
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>
								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Designation: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['designation']!='') {
													echo $value['designation'];
												}else{
													echo '-';
												}	
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>
								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Email Id: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['email_id']!='') {
														echo $value['email_id'];
												}else{
														echo '-';
												}	
											
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>
								</div>
								<div class="profile-user-info">
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Mobile Number: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['mobile_no']!='-') {
													echo $value['std_code'].$value['mobile_no'];
												}else{
													echo '-';
												}	
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</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.location='<?php echo base_url();?>index.php/gc/customer_master/list_customer_master'">
			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');
?>