Here's an image of the errors with description:
[]
Here's the code in question
<?php
foreach($LOCKPERIOD as $lp)
if($lpb->pay_code == $lp->pay_code){
$ct = $lp->create_transaction;
$dtr = $lp->d_t_r;
$da = $lp->deduct_add_adjustment;
$gp = $lp->generate_payslip;
$d = $lp->date;
$q = $this->payroll_lock_period_model->getLockPeriod($lpb->pay_code,$lp->pay_code);
if(!empty($q)){
$ct = $lp->create_transaction;
$dtr = $lp->d_t_r;
$da = $lp->deduct_add_adjustment;
$gp = $lp->generate_payslip;
$d = $lp->date;
} else {
$ct = "";
$dtr = "";
$da = "";
$gp = "";
$d = "";
}
if($ct == 1){
$ct = "checked";
}else{
$ct = "";
}
if($dtr == 1){
$dtr = "checked";
}else{
$dtr = "";
}
if($da == 1){
$da = "checked";
}else{
$da = "";
}
if($gp == 1){
$gp = "checked";
}else{
$gp = "";
}
echo "<td align='center'><input type='checkbox'".$ct." disabled/></td>";
echo "<td align='center'><input type='checkbox'".$dtr." disabled/></td>";
echo "<td align='center'><input type='checkbox'".$da." disabled/></td>";
echo "<td align='center'><input type='checkbox'".$gp." disabled/></td>";
echo "<td align='center'>".$d."</td>";
?>