<?php
error_reporting(0);



    $no_of_emi = $_REQUEST['settlement_no_of_emi'];
    $settlement_amount = $_REQUEST['settlement_amount'];
    $view_type = $_REQUEST['view_type'];
	
	
	$emi = $settlement_amount / $no_of_emi;
	
	if($view_type == 'horizontal')
	{
	?>
	
	<br/>
	
	<?php
	
	for($i=0;$i<$no_of_emi;$i++)
	{
		
		?>
		
		    <div class="input-group" style="margin-left: -4px;" >
            <span style="width: 150px;" class="input-group-text fw-bold"> EMI <?php echo $i+1; ?> : </span>
            <input type="number"  readonly value="<?php echo round($emi,2); ?>"  class="form-control"  >
            </div>
		
		<?php
	}


	}
	
		
	if($view_type == 'vertical')
	{
	 
	
	for($i=0;$i<$no_of_emi;$i++)
	{
		
		?>
		
		    <div  style="display:flex;">
            <span style="width: 150px;" class="input-group-text fw-bold"> EMI <?php echo $i+1; ?> : </span>
            <input type="number"  readonly value="<?php echo round($emi,2); ?>"  class="form-control"  >
            </div>
		
		<?php
	}


	}
	
	
	
	
	
	

?>