<?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="">
								<!-- PAGE CONTENT BEGINS -->	
								<div class="profile-user-info">
									<?php 
                       				 foreach ($branch as $value) {
                          				$branch_id = $value['company_branch_id'];
                         			 ?>
									<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 class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Branch Address line 1 : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['company_branch_address1']!='') {
													echo $value['company_branch_address1'];
												}else{
													echo '-';
												}
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>	
									</div>

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

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Country: '; ?></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 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 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 class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Pincode : '; ?></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 class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Branch Saleable Geography: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php	
											  if ($value['saleble_geography_name']=='') {
											  	echo "-";
											  }else{
												echo $value['saleble_geography_name'];
												echo form_hidden('admin_type_code','');
											}
											?></span>
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Branch Mobile Number: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
											    if ($value['branch_mobile_no']!='') {
												 echo $value['std_code'].$value['branch_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 'Branch Email Id: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['branch_email_id']!='') {
													echo $value['branch_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 '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 class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Branch GST Number: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php	
												if ($value['company_branch_gst_no']=='') {
													echo "-";
												}else{
												echo $value['company_branch_gst_no'];
												echo form_hidden('admin_type_code','');
											}
											?></span>
										</div>	
									</div>

									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Branch PAN Number : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
											if ($value['company_branch_pan_no']=='') {
													echo "-";
												}else{
												echo $value['company_branch_pan_no'];
												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.location='<?php echo base_url();?>index.php/gc/company_branch/list_company_branch'">
			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');
?>