<? global $vis_language;
   if($clientDetails != '') 
   {   $flag = 0 ;
	   foreach($clientDetails as $key=>$value) 
	   {
			if($value != '')
			{ 
				  $flag = 1;
			?> 
			   <div class="popover-content">
				   <?  echo "<h5 class='font-bold'>". $key ."</h5><br>";  ?>
				   <div class="col-sm-12 line b-b line-lg pull-in"></div>
				   <br>
				   <div class="row m-b-sm">
					  <div class="col-sm-6">
						 <label class="font-bold m-r-sm"><?php echo $vis_language['TXTFIRSTNAME'];?></label>:
						 <label class="m-l-sm">
							<?php echo $value['firstname']; ?></span>
					  </div>
					  <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTADDRESS'];?></label><label class="m-l-sm"><?php echo $value['address1']; ?></span></div>
				   </div>
				   <div class="row m-b-sm">
					   <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTLASTNAME'];?></label>:<label class="m-l-sm"><?php echo $value['lastname']; ?></span></div>
					   <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTSTATE'];?></label>:<label class="m-l-sm"><?php echo $value['state']; ?></span></div>
				   </div>
				   <div class="row m-b-sm">
					   <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTEMAIL'];?></label>:<label class="m-l-sm"><?php echo $value['email']; ?></span></div>
					   <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTCOUNTRY'];?></label>:<label class=" m-l-sm"><?php echo $value['countryname']; ?></span></div>
				   </div>
				   <div class="row m-b-sm">
					   <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTCONTACTNUMBER'];?></label>:<label class="m-l-sm"><?php echo $value['phonenumber']; ?></span></div>
					   <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTZIPCODE'];?></label>:<label class="m-l-sm"><?php echo $value['postcode']; ?></span></div>
				   </div>
				   <div class="row m-b-sm">
					   <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTSTATUS'];?></label>:<label class="m-l-sm"><?php echo $value['status']; ?></span></div>
					   <div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo 'Language';//$vis_language['TXTLASTNAME'];?></label>:<label class="m-l-sm"><?php echo $value['language']; ?></span></div>
				   </div>
			   </div>
		   <?php 
		   }?>  
	 <?  } 
	 
   }
   else if($productDetails != '')
   {
	    $flag = 0 ;
		foreach($productDetails as $url=>$product) 
		{
		   if($product != '')
		   {
			   $flag = 1;
			?>
			<div class="popover-content">
			<?
			   echo "<h5 class='font-bold'>". $url ."</h5><br>"; 
			   for($cnt = 0 ;$cnt < count($product) ; $cnt++) 
			   {
				?>
					<div class="col-sm-12 line b-b line-lg pull-in">
					</div>
					<div class="form-group m-b-n"><br>
					<div class="row m-b-sm">
						<div class="col-sm-6">
							<label class="font-bold  m-r-sm"><?php echo $vis_language['TXTPRODUCT'];?></label>:<label class="m-l-sm"><?php echo $product[$cnt]['name']; ?></label>
						</div>
						<div class="col-sm-6">
						<label class="font-bold  m-r-sm"><?php echo $vis_language['TXTPAYMENTMETHOD'];?></label>:<label class="m-l-sm"><?php echo $product[$cnt]['paymentmethod'];; ?></label></div>
					</div>
					<div class="row m-b-sm">
						<div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTFIRSTPAYMENTAMOUNT'];?></label>:<label class="m-l-sm"><?php echo $product[$cnt]['firstpaymentamount']; ?></label></div>
						<div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTRECURRINGAMOUNT'];?></label>:<label class="m-l-sm"><?php echo $product[$cnt]['recurringamount']; ?></label></div>
					</div>
					<div class="row m-b-sm">
						<div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTBILLINGCYCLE'];?></label>:<label class="m-l-sm"><?php echo $product[$cnt]['billingcycle']; ?></label></div>
						<div class="col-sm-6"><label class="font-bold m-r-sm"><?php echo $vis_language['TXTSTATUS'];?></label>:<label class="m-l-sm"><?php echo $product[$cnt]['status']; ?></label></div>
					</div>
			         </div>
			  <?php 
			  } 
			  ?>
		   </div>
		 <?
		   } 
	   } 
	   
   }
  if($flag == 0)
  {
		 include(VIS_PATH_TEMPLATE.'no_record_yet.php');
  } 
?>

