<?php

if($rowTrans['status'] !== 'Completed'){
    
    $tranDetail = "Please Confirm your Transaction Details:";
} else{
    
    $tranDetail = "Your Transaction Details are as Follows:
";
}
 
 ?>
 
 <form method="post" action="" >
                               
<h2 class='margin-tp-10'><?php echo $tranDetail; ?> </h2>     
                                      
                                        
                              <table class="table  margin-tp-10" id="transTable">
                     
                      <?php 
                      $Netary =  array("mtn","airtel","etisalat","glo","Reseller Account Upgrade","mtn-data","airtel-data","glo-data","etisalat-data","01","02","03","04");
                      
                      $bilarray = array("Money Transfer");
                      
                      if(in_array($network,$Netary)){
                          
                         $prod = '<tr>
                            <td width="30%">Transaction</td>
                            <td id="mainService">'.$pnt .'  </td>
                        </tr>'; 
                        
                         
                         $payable = $debit ;
                         
                         
                      }elseif(in_array($network,$bilarray)){
                          
                           
                          $prod = "
                          
                          <tr>
                            <td width='30%'>Transaction Type</td>
                            <td id='mainService'>$pnt ($plan)  </td>
                        </tr>
                          
                          <tr>
                            <td width='30%'>Account Number</td>
                            <td id='mainService'>$accno  </td>
                        </tr>
                        
                        <tr>
                            <td width='30%'>Account Name</td>
                            <td id='mainService'>$customer  </td>
                        </tr>
                        
                        ";
                         
                         
                          
                          
                          
                          $payable = $chargeAmt;
                          
                          }
                      
                     
                          
                        $lgo = '<tr>
                            <td width="30%"> </td>
                            <td id="mainService"><img src="../assets/images/'.$img.'" width="120" height="110" >  </td>
                        </tr>'; 
                          
                      
                      
                      ?>  
                        
                        <?php echo $lgo; ?>
                        
                        
                        <?php echo $prod; ?>
                        
                                                <tr>
                            <td width="30%">Phone</td>
                            <td><?php echo $_SESSION['phone'];?></td>
                        </tr>                   
                                                            <tr>
                        <td width="30%">Amount</td>
                        <td>₦<?php echo $_SESSION['amt'];?>.00 +  ₦<?php echo $charge ?>.00 <i class="conv_fee">
                            
                                                                (Transfer fee)
                                                        
                        </i></td>
                    </tr>
                    
                    
                    
                                          
                    <tr>
                        <td width="30%">Total Payable Amount</td>
                        <td>₦<d id="total_amount"><?php echo $debit;?></d></td>
                    </tr>                                       
                    <tr>
                        <td width="30%"><stro>Transaction ID</h4></td>
                        <td id="transactionId"><?php echo $rowTrans['ref'];?></td>
                    </tr>                    
                    <tr>
                        <td width="30%">Status</td>
                        <td><?php echo $rowTrans['status']; ?></td>
                    </tr>       
                    
                    <tr>
                        <td width="30%">Time Left to Complete Transaction</td>
                        <td><?php echo '<strong id="timing">' ?></td>
                    </tr>             
                                            <tr>
                            <td colspan="2">
                                                                                            
                                <div class="pay-button">
                                                                                                                                                                                                                                
                                </div>
                              							               </td>
                        </tr>
                                    </table>              
                                         
                                        
                                     <div class="col-sm-6 pl-0">
                                         
                                                <p class="text-center">
                                                    <button type="submit" name="pay" class="btn btn-rounded btn-primary"><i class="fas fa-fw fa-money-bill-alt"></i> Send Money</button>
                      
                                                
                       
                                                </p>
                                                
                                                <p align="center">
                                                    
                                                
                                                     </p>
                                               
                                            </div>       
                                        </form>