<?php include('parent/callMe.php');?>
<?php include('Sessioncheck.php');?>
<?php 


$m->where("student_id", $_GET['student_id']);
$discount=$m->get("eduportal_student_fee_structure");

//getting branch details 

$branch=getBranch($m);
$branchID=$_SESSION['branch'];

$month_id=$_GET['month_id'];

$sql = " select std.*, fee.* from  edu_student_details as std, eduportal_monthly_challan as fee where std.student_id=fee.student_id AND std.status='0' AND fee.month_id='$month_id' AND std.branch_id=".$_SESSION['branch']." AND fee.student_id=".$_REQUEST['student_id'];


if ($_REQUEST['session']!=NULL) {
    $sql .= " AND fee.session_id =" . $_REQUEST['session']. " ";
}

if ($_REQUEST['class_id']!=NULL) {
    $sql .= " AND fee.class_id =" . $_REQUEST['class_id']. " ";
}


//echo $sql1;

$WorkAssignListings = $m->query($sql);


// now getting the other fee parameters of student against selected month



$fee_fine;

if(date("Y-m-d")>$WorkAssignListings[0]['challan_duedate']){
$fee_fine=$branch[0]['late_fee_fine'];
 }
 else {
$fee_fine=0;
 }


  $start_date = strtotime($WorkAssignListings[0]['challan_duedate']); 
 
  if ($WorkAssignListings[0]['paid_status']=='1') {
  $end_date = strtotime($WorkAssignListings[0]['paying_date']);
  
   } else {
  $end_date = strtotime(date("Y-m-d"));
  }

  $datediffrence =($end_date - $start_date)/60/60/24;

    $student_fine=0;
    $actual_fine=0;


if (date("Y-m-d")>$WorkAssignListings[0]['challan_duedate']) {
  
   if($branch[0]['fine_type']=="0" || $branch[0]['fine_type']==0){  

    $student_fine= $branch[0]['late_fee_fine']; } 

  else {
    
    $student_fine= ($datediffrence * $branch[0]['late_fee_fine']);
   }

}
$total_fee=intVal($WorkAssignListings[0]['tutionfee'])+intVal($WorkAssignListings[0]['transportfee'])+intVal($WorkAssignListings[0]['balance'])+intVal($WorkAssignListings[0]['misc_fee'])-$WorkAssignListings[0]['disc_amount'];


// print_r($challan); 

  $m->where("session_id", $_SESSION['current_session']);
  $m->where("class_id", $WorkAssignListings[0]['class_id']);
  $class_fee = $m->get("eduportal_class_fee_details");
  $class_standerd_fee=$class_fee[0]['tution_fee'];

  $m->where("Month_Id", $month_id);
  $month_name=$m->get("eduportal_month_config");


  $sessionID=$_SESSION['current_session'];

?>
 <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicons-->
<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />
<title>Print Triple Voucher</title>
<!-- Favicons-->
<link rel="icon" type="image/png" href="img/favicon.png" sizes="32x32" />

<script type="text/javascript">
 window.print();
</script>
<style> 
.section{width:28%; height:auto;float:left;padding-right:2%;margin-left:2%;margin-top:2%;}
     
tr th {background-color:lightgray; text-align:center;font-size:12px;border:1px solid black;}
tr td {border-bottom:1px solid black;border-left:1px solid black;padding:.5%;}

@media print {
    #Header, #Footer { display: none !important; }
}
@media screen
   {
      p.bodyText {font-family:verdana, arial, sans-serif;}
   }

   @media print
   {
      p.bodyText {font-family:georgia, times, serif;}
   }
   @media screen, print
   {
      p.bodyText {font-size:10pt}
   }
   @page {
    size: A4 landscape;
    margin: 0;
  }
   @media print {
  a[href]:after {
    content: none !important;
  }
}
</style>
</head>
<body>
<?php


 $array1=array("Bank Copy","Institute Copy","Student Copy");

 for($i=0; $i<3;$i++){ ?>

 <!-- Vouchere Fist -->
<div class="section" style="<?php if($i<2){echo 'border-right: 2px solid black;border-right-style:dotted;';}?>">
   
   <div style="width:100%; text-align:center; height:auto;font-size:12px;">
            <?php echo $array1[$i]; ?>

   </div>
 

      <div style="">
        
        <div style="width:13%;float: left;">
            <img src="<?php echo DOMAIN.AgentDirectory;?>img/<?php echo $branch[0]['logo']; ?>" style="height:50px;width:50px;" />    
        </div>
        <div style="width:87%;font-size:18px;float: right;margin-top: 10px;text-align:center;"><?php echo $branch[0]['Branch_Name'];?></div>

      </div>
      <br><br>
       <div style="font-size:10px; text-align:center;">  <?php echo $branch[0]['Branch_Location'];?> </div>
       <div style="font-size:10px; text-align:center;">  Contact: <?php echo $branch[0]['branch_contact'];?><span style="text-align:right;margin-left: 50px;">Issue date: <?php echo date('d-M-Y');?></span> </div>

<hr>

<?php  

  $m->where("branch_id", $_SESSION['branch']);
  $accounts=$m->get("edu_branch_bank_details");
  if(count($accounts)>0){

  if($accounts[0]['bank_accountitle']!=NULL){
?>

   <div style="width:100%; font-size:12px;text-align:left; height:25px; float:left;">

        <b> Acc Title: <?php  echo $accounts[0]['bank_accountitle'];?></b> 
   </div>

   <div style="width:100%; font-size:12px;text-align:left; height:25px; float:left;">

         <b>Bank: (<?php  echo $accounts[0]['bank_branch'];?>) <?php  echo $accounts[0]['bank_accountno'];?> </b>
   </div>
  
<?php 
}
?>
   
<?php 
}
?>


<?php if ($brid[0]['easypaisa_account_title']!="") { ?>
    
    <div style="width:100%; font-size:12px;text-align:left; height:25px; float:left;">

         <b>EasyPaisa: (<?php  echo $brid[0]['easypaisa_account_title'];?>) 
          <span style="text-align: right;">&nbsp;&nbsp;Acc No: <?php  echo $brid[0]['easypaisa_account_no'];?></span> </b>
</div>

<?php } ?>

<?php if ($brid[0]['jazzcash_account_title']!="") { ?>
    
    <div style="width:100%; font-size:12px;text-align:left; height:25px; float:left;">

         <b>JazzCash: (<?php  echo $brid[0]['jazzcash_account_title'];?>) 
          <span style="text-align: right;">&nbsp;&nbsp;Acc No: <?php  echo $brid[0]['jazzcash_account_no'];?></span> </b>
</div>

<?php } ?>

<?php if ($brid[0]['raast_id']!="") { ?>
    
    <div style="width:100%; font-size:12px;text-align:left; height:25px; float:left;">

         <b>RAAST ID:  
          <span style="text-align: right;">&nbsp;&nbsp;<?php  echo $brid[0]['raast_id'];?></span> </b>
</div>

<?php } ?>

 <hr>    

   <div style="width:66%; font-size:11px;text-align:left; height:15px; float:left;">

         Month / Session : <?php echo $month_name[0]['Month_Name']." / ".getSessionName($m,$WorkAssignListings[0]['session_id']);?>

   </div>

   <!-- <div style="width:33%; font-size:11px;text-align:center; height:25px; float:left;">

        <b> Adm : <?php echo $WorkAssignValue['ref_no'];?> </b>

   </div> -->


    <div style="width:66%; font-size:11px;text-align:left; height:15px; float:left;">

         Validity Date : <?php echo date("d-M-Y",strtotime($brid[0]['voucher_validity']));?>

   </div>


   <div style="width:33%;font-size:11px; text-align:right; height:15px; float:left;">

        Due Date <?php echo date("d-M-Y",strtotime($WorkAssignListings[0]['challan_duedate']));?>

   </div>


    <table width="100%" style="font-size:11px;" cellspacing="0">  
   
   
      <tr>  
         <td width="15%" style="border:none;"> Name:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;font-size: 12px;">  <?php echo $WorkAssignListings[0]['first_name'];?>  </td>
      
         <td width="15%" style="border:none;"> F.Name:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;font-size: 12px;">  <?php echo $WorkAssignListings[0]['last_name'];?>  </td>

      </tr>


  
      <tr>  
         <td width="15%" style="border:none;"> Class (Sec):   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;font-size: 12px;"> 
         <?php echo getClassName($m,$WorkAssignListings[0]['classs_id']);?> (<?php echo  getSectionName($m,$WorkAssignListings[0]['section_id']);?>) </td>
      
        <?php if ($brid[0]['no_type']==1 || $brid[0]['no_type']==0) { ?>

         <td width="15%" style="border:none;"> Comp No:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;font-size: 12px;">  
         <?php echo $WorkAssignListings[0]['candidate_roll_no'];?>  </td>

         <?php } elseif ($brid[0]['no_type']==2 || $brid[0]['no_type']==0) { ?>

        <td width="15%" style="border:none;"> Reg No:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;font-size: 12px;">  
         <?php echo $WorkAssignListings[0]['ref_no'];?>  </td>

         <?php } ?>

      </tr>


 <tr>  
         <td width="15%" style="border:none;"> Cell No:   </td>
         <td width="35%" style="border-bottom: 1px solid black;text-align:center;border-left:none;font-size: 12px;"> 
         <?php echo $WorkAssignListings[0]['cell_no'];?>  </td>
      
         <td width="17%" style="border:none;"> Voucher No:   </td>
         <td width="33%" style="border-bottom: 1px solid black;text-align:center;border-left:none;font-size:12px;">  
         <?php
         
         
         if($WorkAssignListings[0]['challan_id']!=NULL){echo $WorkAssignListings[0]['challan_id'];} ?>  </td>

      </tr>



  </table>




   <table width="100%" style="font-size:11px;margin-top:1%;" cellspacing="0">  
   

      <tr>  
         <th width="70%"> Particulars    </td>
         <th width="30%" style="text-align:center;">  Amount </td>
      </tr>

      <!-- <tr style="background-color: lightgray;">  
         <td width="70%"> Standard Fee   </td>
         <td width="30%" style="text-align:center;border-right:1px solid gray;">  <?php echo $class_standerd_fee;?> </td>
      </tr> -->


      <tr>  
         <td width="70%"> Arrears   </td>
         <td width="30%" style="text-align:center;border-right:1px solid lightgray;">  <?php echo $WorkAssignListings[0]['balance'];?> </td>
      </tr>
      
         
      <tr>  
         <td width="70%"> Monthly Fee   </td>
         <td width="30%" style="text-align:center;border-right:1px solid lightgray;">  <?php echo $WorkAssignListings[0]['tutionfee'];?>  </td>
      </tr>

      <?php if($brid[0]['transport_status']==0 && $WorkAssignListings[0]['transportfee'] > 0){ ?>
      <tr>  
         <td width="70%"> <?php if ($brid[0]['transport_title']!=NULL){echo $brid[0]['transport_title'];}else {echo 'Transport Fee';} ?>   </td>
         <td width="30%" style="text-align:center;border-right:1px solid lightgray;">  <?php echo $WorkAssignListings[0]['transportfee'];?>  </td>
      </tr>
    <?php } ?>

    <?php if($brid[0]['misc_status']==0 && $WorkAssignListings[0]['misc_fee'] > 0){ ?>
      <tr>  
         <td width="70%"> <?php if ($brid[0]['misc_title']!=NULL){echo $brid[0]['misc_title'];}else {echo 'Miscellaneous';} ?>   </td>
         <td width="30%" style="text-align:center;border-right:1px solid lightgray;">  <?php echo $WorkAssignListings[0]['misc_fee'];?>  </td>
      </tr>
    <?php } ?>

   <?php 

      $fee_types = $m->get("eduportal_fee_types");
      $other_fee=0;
      foreach ($fee_types as $type) {
        $fees=getFeeOfOtherParameter($WorkAssignListings[0]['student_id'],$WorkAssignListings[0]['challan_id'],$type['feetype_id'],$m);        

    $query11="SELECT * FROM eduportal_manage_fee_heads_details WHERE  branch_id='$branchID' and fee_head_id=".$type['feetype_id'];
        $feeHeads = $m->query($query11);

        if ($feeHeads[0]['status']=='1') {
            continue;
        }
        if ($fees==!NULL) {           
        
   ?>
     <tr>  
         <td width="70%"> <?php if ($feeHeads[0]['fee_head_title']!=NULL){echo $feeHeads[0]['fee_head_title'];}else {echo $type['feetype_name'];} ?>   </td>
         <td width="30%" style="text-align:center;border-right:1px solid lightgray;"> 
          <?php 
          $other_fee+=$fees;
          echo $fees;  ?> </td>
      </tr>

     <?php  } }?>
        
     <?php

     if ($WorkAssignListings[0]['paid_status']==1) {
     $student_fine=$WorkAssignListings[0]['collected_fine'];
  }

      if($student_fine>0 && date("Y-m-d")>$WorkAssignListings[0]['challan_duedate']){ ?>

      <tr>  
         <td width="70%"> Fine   </td>
         <td width="30%" style="text-align:center;border-right:1px solid lightgray;">  
         
               <?php  echo $student_fine;?>
  
         
           </td>
      </tr>

    <?php } ?>

      <?php if($WorkAssignListings[0]['disc_amount']>0){ ?>
    <tr>  
         <td width="70%"> Fee Discount   </td>
         <td width="30%" style="text-align:center;border-right:1px solid lightgray;">
  <?php  

  echo number_format(($WorkAssignListings[0]['disc_amount']/$WorkAssignListings[0]['tutionfee']*100),2)."% (".$WorkAssignListings[0]['disc_amount'].")";

  ?>        
           </td>
      </tr>
  <?php } ?>
      <tr>  
         <th width="70%" style="text-align:left;"> &nbsp;&nbsp; Total   </th>
         <th width="30%" style="text-align:center;">
          <?php echo number_format(($other_fee+$total_fee+$student_fine),2); ?> </th>
      </tr>
   
      
      
      <!-- <tr>  
         <td width="70%" style="text-align:right;padding-top:3%;"> Before Due Date:   </td>
         <td width="30%" style="text-align:center;padding-top:3%;border-right:1px solid gray;">  <?php echo number_format(($other_fee+$total_fee)-$WorkAssignListings[0]['disc_amount'],2); ?>  </td>
      </tr> -->
      <?php  if($branch[0]['fine_type']=="0" || $branch[0]['fine_type']==0){  ?> 

      <tr>  
         <td width="70%" style="text-align:right;">  Late Fee Fine:   </td>
         <td width="30%" style="text-align:center;border-right:1px solid lightgray;">  <?php echo $branch[0]['late_fee_fine'];?> </td>
      </tr>

    <?php } ?>

<?php  if($branch[0]['fine_type']=="0" || $branch[0]['fine_type']==0){  ?> 
   
      <tr>  
         <th width="70%" style="text-align:right;"> After Due Date:   </th>
         <th width="30%" style="text-align:center;border-right:1px solid lightgray;"> 
          <?php echo number_format(($other_fee+$total_fee+$branch[0]['late_fee_fine']),2); ?> </th>
      </tr>
<?php  } else { ?>

       <tr>  
         <td width="100%" colspan="2" style="text-align:left;border-right: 1px solid lightgray;"><b> After due date 
         	<?php echo $branch[0]['late_fee_fine']?> Rs fine will be charged per day.</b></td>
        
      </tr>
 <?php }  ?>

<?php $discount_amount = $class_standerd_fee - $WorkAssignListings[0]['tutionfee'];?>

<?php
if ($brid[0]['display_discount_reason']==0) {
 if($discount_amount>0){ ?>
       <tr>  
         <td colspan="2" width="100%" style="text-align:left;border-right: 1px solid lightgray;"><b>Regular Discount & Reason:- 
         	<?php echo number_format(($discount_amount/$class_standerd_fee)*100,0); ?> % fee discount </b> (<?php echo $discount[0]['discount_reason'];?>) <?php echo $discount_amount;?></td>
      </tr>
<?php } ?>

<?php if($discount[0]['discount_reason']!=""){ ?>
       <tr>  
         <td colspan="2" width="100%" style="text-align:left;border-right: 1px solid lightgray;"><b>Regular Discount & Reason:- 
            </b> &nbsp;&nbsp;(<?php echo $discount[0]['discount_reason'];?>) </td>
      </tr>
<?php } }?>

      
<?php  if($WorkAssignListings[0]['paid_status']==1 || $WorkAssignListings[0]['paid_status']=="1"){  ?> 
  
      <tr>  
         <th width="70%" style="text-align:right;">Paid at: <?php echo $WorkAssignListings[0]['paying_time']; ?>, 
          <?php echo date("d-M-Y", strtotime($WorkAssignListings[0]['paying_date'])); ?>  | Paid: &nbsp;&nbsp;   </th>
         <th width="30%" style="text-align:center;">  <?php echo number_format($WorkAssignListings[0]['collected_amount']+$WorkAssignListings[0]['collected_fine'],2); ?> </th>
      </tr>

      <?php if ($WorkAssignListings[0]['paid_again_amount']!=NULL) { ?>

      <tr>  

         <th width="70%" style="text-align:right;font-size: 11px;">Paid at: <?php echo $WorkAssignListings[0]['paid_again_time']; ?>, <?php echo date("d-M-Y", strtotime($WorkAssignListings[0]['paid_again_date'])); ?>  |  Paid Again Amount: &nbsp;&nbsp;</th>
         <th width="30%" style="text-align:center;">  <?php echo number_format($WorkAssignListings[0]['paid_again_amount'],2); ?> </th>
      </tr>

    <?php } ?>
   
      <?php 

  if(date("Y-m-d",strtotime($WorkAssignListings[0]['paying_date'])) > $WorkAssignListings[0]['challan_duedate'] AND $WorkAssignListings[0]['collected_fine']!=0) { ?>

<tr>  
         <th width="70%" style="text-align:right;"> Remaining: &nbsp;&nbsp;  </th>
         <th width="30%" style="text-align:center; ">  <?php echo number_format(($other_fee+$total_fee+$student_fine)-$WorkAssignListings[0]['collected_amount']-$WorkAssignListings[0]['collected_fine']-$WorkAssignListings[0]['paid_again_amount'],2); ?> </th>
</tr>

 <?php } else { $totalRemaining = ($other_fee+$total_fee)-$WorkAssignListings[0]['collected_amount']-$WorkAssignListings[0]['collected_fine']-$WorkAssignListings[0]['paid_again_amount']; ?>

<tr>  
         <th width="70%" style="text-align:right;"><?php if ($totalRemaining<0) {
             echo "Advance:";
         } else { echo "Remaining:"; }?> &nbsp;&nbsp;  </th>
         <th width="30%" style="text-align:center; ">  <?php if ($totalRemaining<0) {
            $rem = ltrim($totalRemaining, '-');
          echo "Advance: ". number_format($rem,2);
          } else { echo number_format($totalRemaining,2);} ?> </th>
</tr>
 
      
     
<?php } }  ?>

  
 <table class="table "cellspacing="0"  style="width:100%;">
<?php if ($WorkAssignListings[0]['fee_remarks']!=NULL) { ?>
<p style="margin: 1px; border: 1px solid black;padding-left: 2px;font-size: 11px;"> Fee Remarks: <?php echo $WorkAssignListings[0]['fee_remarks'];?></p>
<?php } ?>

<?php if($branch[0]['hide_fee_history']==0) { ?>

<p style="text-align:center;margin: 3px;">Student Fee History</p>
    <thead>
            
    <tr>
    <th style="background: lightgray;font-size:11px;" width="2%">Month</th>
        <?php
         
      for ($mm=1; $mm<=12; $mm++) { 
//echo $mm;
        $monthss = date('F', mktime(0,0,0,$mm, 1, date('Y')));
        ?>

       <th style="background: lightgray;font-size:11px;" width="2%" class=" center"><?php echo substr($monthss, 0, 3);?></th>

        <?php } ?>
        </tr>  


        <tr>
        <th style="background: white;font-size:11px;" width="2%">Total</th>
       <?php for ($mm=1; $mm<=12; $mm++) {

$stdid=$WorkAssignListings[0]['student_id'];
$bal = "select * from eduportal_monthly_challan where student_id='$stdid' AND month_id='$mm' AND session_id='$sessionID' AND branch_id=".$_SESSION['branch'];  
  $monthlyTotal = $m->query($bal);

$adm=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],1,$m);
$papr=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],2,$m);
$lib=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],3,$m);
$lab=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],4,$m);
$othr=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],5,$m);
$regfee=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],6,$m);
$secufee=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],7,$m);
$anualfee=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],8,$m);
$BooksPack=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],9,$m);
$ProcessingFee=getFeeOfOtherParameter($monthlyTotal[0]['student_id'],$monthlyTotal[0]['challan_id'],10,$m);
$otherFee=$adm+$papr+$lib+$lab+$othr+$regfee+$secufee+$anualfee+$BooksPack+$ProcessingFee;

$total_MonthlyFee=$otherFee+$monthlyTotal[0]['tutionfee']+$monthlyTotal[0]['transportfee']+$monthlyTotal[0]['balance']+$monthlyTotal[0]['misc_fee']-$monthlyTotal[0]['disc_amount']+$monthlyTotal[0]['collected_fine'];

?>
<th style="background: white;font-size:11px;" width="2%" class=" center"><?php echo $total_MonthlyFee;?></th>
<?php } ?>

    </tr>

    <tr>

    <th style="background: white;font-size:11px;" width="2%">Recev</th>
    <?php for ($mm=1; $mm<=12; $mm++) { 

$stdid=$WorkAssignListings[0]['student_id'];
$bal = "select * from eduportal_monthly_challan where student_id='$stdid' AND month_id='$mm' AND session_id='$sessionID' AND branch_id=".$_SESSION['branch'];  
  $monthlyTotal = $m->query($bal);
$totalMonthlyRecev=$monthlyTotal[0]['collected_amount']+$monthlyTotal[0]['paid_again_amount']+$monthlyTotal[0]['collected_fine']; 
    ?>
    <th style="background: white;font-size:11px;" width="2%" class=" center"><?php echo $totalMonthlyRecev;?></th>
<?php } ?>

    </tr>  
    
<?php } ?>

    </thead>
   </table>
 
    <br>     
   
   </table>
   

   <p style="text-align:justify;font-size: 10px;">
            NOTICE:<br>
            1: 200/- rupees late fee charges.<br>
            2: 50/- rupees for the Duplicate Fee Voucher.<br>
            3: Child's School-Work will be stopped if one month's fee is outstanding.<br>
            4: Two-month-fee-defaulter students will be sent back to their homes on the sole responsibility of their <span style="margin-left:15px;">parents; the school management will not be responsible for any accident or untoward incident in </span> <span style="margin-left:15px;"> this regard.</span><br>
            5: Three months or more fee-defaulter students will be struck off from the school.<br>
            6: The School management will not call or send a notice to the child/parent for fee payment. This Fee <span style="margin-left:15px;">Voucher should be deemed as Notice/Reminder.</span><br>
            7: Fee payment on time is duty of the parents/students.<br>  
          </p> 

          <p style="text-align:justify;font-size: 9px;">
            NOTE: Please keep this receipt handy. In case of any slip/error/problems in fee, only this receipt will be considered as conclusive proof.
          </p>

  

      <br>

        <p style="text-align:right;">(Signature & Stamp)</p>   
       


</div>


<?php } ?>

</body>
</html>
