"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; } } ?>
$record) { $index++; ?>
Driver Id S.No Driver Name Number Of Load Salary Amount ₹ Food Amount ₹ Total Amount ₹ Diesel Shed Duty Grand Total in ₹
driver_id; ?> driver_name; ?> no_of_loads; ?> driver_monthly_salary_amount)) { $totalforfooter[] = $record->driver_monthly_salary_amount; echo number_format($record->driver_monthly_salary_amount, 2, '.', ''); } else { echo number_format(0.00, 2, '.', ''); } ?> driver_monthly_food_amount)) { $totalforfooter2[] = $record->driver_monthly_food_amount; echo number_format($record->driver_monthly_food_amount, 2, '.', ''); } else { echo number_format(0.00, 2, '.', ''); } ?> driver_earnings_amount) ? $record->driver_earnings_amount : ($record->driver_monthly_salary_amount + $record->driver_monthly_food_amount); if (!empty($driver_earnings_amount)) { $totalforfooter3[] = $driver_earnings_amount; echo number_format($driver_earnings_amount, 2, '.', ''); } else { echo number_format(0.00, 2, '.', ''); } ?> payroll_id)) { echo "contenteditable='true';"; } ?> payroll_id)) { ?> title="Payslip Calculated" style="text-align:right;color:blue;" style="text-align:right;" > diesel)) { echo number_format($record->diesel, 2, '.', ''); $totalforfooter4[] = $record->diesel; } else { echo number_format(0.00, 2, '.', ''); } ?> payroll_id)) { echo "contenteditable='true';"; } ?> payroll_id)) { ?> title="Payslip Calculated" style="text-align:right;color:blue;" style="text-align:right;" > shed_duty_amount)) { echo number_format($record->shed_duty_amount, 2, '.', ''); $totalforfooter5[] = $record->shed_duty_amount; } 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;" > driver_final_payment)) { echo number_format($record->driver_final_payment, 2, '.', ''); $totalforfooter6[] = $record->driver_final_payment; } else { echo number_format(0.00, 2, '.', ''); } ?>
Total