'; // print_r($month); // print_r($fresh); // print_r($sample); // echo '
';
// foreach ($sample as $s) {
// if (!empty($s->Key)) {
// $show_hide_column_value = false;
// } else {
// $show_hide_column_value = true;
// }
// break;
// }
$sample = $fresh;
$ex = explode('-', $dropdownvalue);
if (strlen($ex[0]) == '2') {
if ($ex[0] < 10) {
$ex1 = substr($ex[0], 1);
} else {
$ex1 = $ex[0];
}
} else {
$ex1 = $ex[0];
}
$drop = $ex1 . '-' . $ex[1];
?>
Employee Monthly Payment Listing
"Jan", "2" => "Feb", "3" => "Mar", "4" => "Apr", "5" => "May", "6" => "June", "7" => "July", "8" => "Aug", "9" => "Sep", "10" => "Oct", "11" => "Nov", "12" => "Dec");
$currentmontharray = array(array($month . "-" . $year => $monthsoptions[$month] . "-" . $year));
// For find out Next and previous month and year from current year
$aftersix = array();
for ($i = 0; $i < 3; $i++) {
$month++;
if ($month > 12) {
$month = 1;
$year = $year + 1;
}
$aftersix[] = array($month . "-" . $year => $monthsoptions[$month] . "-" . $year);
}
$year = date("Y");
$month = date("m");
$beforesix = array();
for ($i = 3; $i > 0; $i--) {
$month--;
if ($month < 1) {
$month = 12;
$year = $year - 1;
}
$beforesix[] = array($month . "-" . $year => $monthsoptions[$month] . "-" . $year);
}
$beforesix = array_reverse($beforesix);
$options = array_merge($options, $beforesix);
//echo count($options);
$options = array_merge($options, $currentmontharray);
$options = array_merge($options, $aftersix);
$ot = array();
foreach ($options as $o) {
foreach ($o as $key => $value) {
$ot[$key] = $value;
}
}
?>
S.No
Emp ID
Employee
DOJ
Designation
Total Days
Days Worked
LOP Days
Paid Leave
OT Hrs
Basic Salary
Pre Day Salary
Worked Salary
Pre hr Salary
Earned Salary
Basic Salary(0.7)
HRA Salary(0.3)
Gross Salary
ESI
PF
Over Time
Auto Loan Due ₹
TDS Deductions in ₹
Festival Bonus in ₹
Estimate in ₹
$record) {
$index++;
if (in_array($record->EmpID, $testarray)) {
$index--;
} else {
array_push($testarray, $record->EmpID);
?>
EmpID; ?>
FirstName; ?>
DateofJoining;
// $date = DateTime::createFromFormat('Y-m-d H:i:s', $record->DateofJoining);
// $newDateFormat = $date->format('d-m-Y');
// echo $newDateFormat;
?>
Designation; ?>
NoofDays; ?>
Key)) {
echo "contenteditable='false';";
} ?>
Key)) { ?> title="Payslip Calculated"
style="text-align:right;color:blue;"
style="text-align:right;" >
Days_worked)) {
echo $record->Days_worked + $record->sunday_count;
} else {
echo "0.00";
} ?>
Key)) {
echo "contenteditable='false';";
} ?>
Key)) { ?> title="Payslip Calculated"
style="text-align:right;color:blue;"
style="text-align:right;" >
LOP_Days)) {
echo $record->LOP_Days;
} else {
echo "0.00";
} ?>
Key)) {
echo "contenteditable='false';";
} ?>
Key)) { ?> title="Payslip Calculated"
style="text-align:right;color:blue;"
style="text-align:right;" >
Paid_leave)) {
echo number_format($record->Paid_leave, 2, '.', '');
} else {
echo number_format(0.00, 2, '.', '');
} ?>
Key)) {
echo "contenteditable='false';";
} ?>
Key)) { ?> title="Payslip Calculated"
style="text-align:right;color:blue;"
style="text-align:right;" >
OT_Hrs_Worked)) {
echo $record->OT_Hrs_Worked;
} else {
echo number_format(0.00, 2, '.', '');
} ?>
TotalSalary; ?>
TotalSalary / $record->NoofDays;
echo number_format($perDaySalary, 2, '.', ''); ?>
Days_worked + $record->sunday_count);
echo number_format($workedSalary, 2, '.', ''); ?>
Key)) {
echo "contenteditable='true';";
} ?>
Key)) { ?> title="Payslip Calculated"
style="text-align:right;color:blue;"
style="text-align:right;" >
Monthly_Due)) {
echo $record->Monthly_Due;
$totalmonthloan[] = $record->Monthly_Due;
} else {
echo number_format(0.00, 2, '.', '');
} ?>
Key)) {
echo "contenteditable='true';";
} ?>
Key)) { ?> title="Payslip Calculated"
style="text-align:right;color:blue;"
style="text-align:right;" >
Other_Deductions)) {
echo $record->Other_Deductions;
$totalotherDet[] = $record->Other_Deductions;
} else {
echo number_format(0.00, 2, '.', '');
} ?>
Key)) {
echo "contenteditable='true';";
} ?>
Key)) { ?> title="Payslip Calculated"
style="text-align:right;color:blue;"
style="text-align:right;" >
Festival_Bonus)) {
echo $record->Festival_Bonus;
$totalfestival[] = $record->Festival_Bonus;
} else {
echo number_format(0.00, 2, '.', '');;
} ?>
Key)) {
echo "contenteditable='false';";
} ?>
Key)) { ?> title="Payslip Calculated"
style="text-align:right;color:blue;" >
Estimate)) {
echo $record->Estimate;
$estTotal[] = $record->Estimate;
} else {
echo $empSalary[$i];
$estTotal[] = $empSalary[$i];
}
?>
Total