<thead> <tr> <th width="10%">S/N</th> <th width="40%">Code</th> <th width="25%">Beneficiaries</th> <th width="25%" style="text-align:center" colspan="2">Option</th> </tr> </thead> <tbody> <?php $rewardMgr = new RewardManager(); $rewardCodeList = $rewardMgr->getRewardCodeList(); $codeCount = 0; foreach ($rewardCodeList as $rewardCode) { $codeCount += 1; $noOfBeneficiary = $rewardMgr->getNoOfBeneficiary($rewardCode); ?> <tr> <td><?php echo $codeCount; ?> </td> <td><?php echo $rewardCode; ?> </td> <td><?php echo $noOfBeneficiary; ?> </td> <td style="text-align:center">