'มกราคม', 2 => 'กุมภาพันธ์', 3 => 'มีนาคม', 4 => 'เมษายน', 5 => 'พฤษภาคม', 6 => 'มิถุนายน', 7 => 'กรกฎาคม', 8 => 'สิงหาคม', 9 => 'กันยายน', 10 => 'ตุลาคม', 11 => 'พฤศจิกายน', 12 => 'ธันวาคม' ]; function getStatusBadge($status) { switch ($status) { case 'Draft': return 'ฉบับร่าง'; case 'Imported': return 'นำเข้าข้อมูลแล้ว'; case 'Pending Review': return 'รอตรวจสอบ'; case 'HR Approved': return 'HR อนุมัติ'; case 'Finance Approved': return 'การเงินอนุมัติ'; case 'Director Approved': return 'ผอ.อนุมัติ'; case 'Locked': return 'ล็อก'; case 'Published': return 'ประกาศใช้'; case 'Cancelled': return 'ยกเลิก'; default: return '' . htmlspecialchars($status) . ''; } } ?>
สร้างและจัดการรอบบิลเงินเดือนของแต่ละเดือน
| ปี / เดือน | อัปเดตล่าสุด | สถานะ | จัดการ |
|---|---|---|---|
| ยังไม่มีข้อมูลงวดเงินเดือน | |||
| = $thaiMonths[$period['month_no']] ?> = $period['year_no'] > 2500 ? $period['year_no'] : $period['year_no'] + 543 ?> | = date('d/m/Y H:i', strtotime($period['updated_at'])) ?> | = getStatusBadge($period['status']) ?> | จัดการ |