prepare("SELECT * FROM payroll_runs WHERE company_id = ? ORDER BY pay_period_year DESC, pay_period_month DESC"); $stmt->execute([$company_id]); $payroll_runs = $stmt->fetchAll(); ?>
| Pay Period | Status | Run Date | Actions |
|---|---|---|---|
| No payroll history found. | |||
| = htmlspecialchars(date('F Y', mktime(0,0,0, (int)$run['pay_period_month'], 1, (int)$run['pay_period_year']))) ?> | = htmlspecialchars(ucfirst($run['status'])) ?> | = htmlspecialchars(date('d M Y, H:i', strtotime($run['run_date']))) ?> | View Payslips |