"Jan", "02" => "Feb","03" => "Mar","04" => "Apr","05" => "May","06" => "June","07"=> "July","08"=> "Aug","09" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec"); if(!empty($PayInfo)) { foreach ($PayInfo as $ep) { $Key = $ep->Key; $PayOn1=$ep->PayOn; $month = substr($PayOn1,0,2); $year = substr($PayOn1,3); $PayOn = $monthsoptions[$month]."-".$year; $EmpID=$ep->EmpID; $Empname=$ep->FName ." ". $ep->Lname ; $EmpDetails = $EmpID ."-".$Empname; $TotalCalDays = $ep->TotalCalDays; $NoofDaysWorked = $ep->NoofDaysWorked; $LOP = $ep->LOP; $Paid_Leave = $ep->Paid_Leave; $ActualSalary = $ep->ActualSalary; $PerDaySalary = $ep->PerDaySalary; $WorkedSalary = $ep->WorkedSalary; $HRA = $ep->HRA; $OTperHours = $ep->OTperHours; $OTSalary = $ep->OTSalary; $ESIGrossSalary = $ep->ESIGrossSalary; $EmployeeESI = $ep->EmployeeESI; $PF = $ep->PF; $CompanyESI = $ep->CompanyESI; $CompanyPF = $ep->CompanyPF; $TotalCompCon = $ep->TotalCompCon; $OtherDeductions = $ep->OtherDeductions; $TotalDeduction = $ep->TotalDeduction; $SalaryAsPerPF = $ep->SalaryAsPerPF; $FoodAllowance=$ep->FoodAllowance; $Incentive = $ep->Incentive; $FestBonus = $ep->Festival_Bonus; $Advance = $ep->Advance; $BalanceAdvance = $ep->BalanceAdvance; $LessAdvance = $ep->LessAdvance; $Other_allowances = $ep->Other_allowances; $Remarks = $ep->Remarks; $BankAccountNumber = $ep->BankAccountNumber; $PFNumber = $ep->PFNumber; $ESINumber = $ep->ESINumber; $UANNO = $ep->UANNO; $Dob = date_create($ep->Dob); $Dob = date_format($Dob,"Y-m-d"); $Pan = $ep->Pan; $BankName = $ep->BankName; $AadharNo = $ep->AadharNo; $IFSCCode = $ep->IFSCCode; $DOJ = date_create($ep->DOJ); $DOJ = date_format($DOJ,"Y-m-d"); $Designation = $ep->Designation; $DeptName = $ep->DeptName; $totalearnings = $WorkedSalary + $HRA + $FoodAllowance + $Other_allowances + $Incentive + $FestBonus + $OTSalary; $totaldeductions = $PF + $EmployeeESI + $Advance + $OtherDeductions; } } ?>