/* Decoded by unphp.net */
goto lzLRx; ybLaf: $count = 0; goto YLzuh; GIW5y: T3PU1: goto zZ_42; gkcgs: goto YqbwC; goto Ch6sN; zJ7gA: M53gY: goto qJtZX; fVeyi: goto ps4Gg; goto iT7_R; l_imU: DSme1: goto RAJ0e; gdpJL: Kvzr2: goto Saj1r; Vo35N: PTgbG: goto h2Z29; SVmLY: IeFYQ: goto GIO6b; lrBuM: goto DBeiE; goto fN2Kc; DikRg: goto T3PU1; goto T3flx; fPeEF: $departments = new Model($db, "tbl_department"); goto NKsuW; qJtZX: $attendance = new Model($db, "tbl_fr"); goto Eq2nW; GIO6b: $page = "Attendance"; goto jcFS6; S_8yf: $absent = array(); goto fVeyi; zZ_42: $start_date = isset($_GET["start_date"]) ? $_GET["start_date"] : null; goto HrCWw; Eq2nW: goto PTgbG; goto GIW5y; sCQji: $ids = array(); goto xkwXa; YLzuh: goto yOBYM; goto yxnfQ; lzLRx: goto IeFYQ; goto Vo35N; Y8VtH: $employee = new Model($db, "tbl_emp"); goto gkcgs; LnHNn: $end_date = isset($_GET["end_date"]) ? $_GET["end_date"] : null; goto pbcVE; Saj1r: foreach ($absent as $key => $row) { if (!in_array($row["emp_id"], $ids)) { $ids[] = $row["emp_id"]; $matchesEmployee = empty($employee_attendance) || ($employee_attendance == $row["emp_id"] || $employee_attendance == $last_name || $employee_attendance == $first_name); $matchesDate = empty($start_date) && empty($end_date) || $start_date <= $row["acc_date"] && $end_date >= $row["acc_date"]; if ($matchesEmployee && $matchesDate) { echo "
"; echo "" . $count . " | "; echo "" . $row["person_name"] . " | "; echo "" . $row["emp_id"] . " | "; echo "" . $row["person_group"] . " | "; echo "" . $row["acc_date"] . " | "; echo " | "; echo "
"; } } } goto lrBuM; xkwXa: goto Kvzr2; goto l_imU; p7ESM: if ($get_attendance) { foreach ($get_attendance as $row) { $date = $row["acc_date"]; $att_status = $row["att_status"]; $time = $row["acc_time"]; $emp_id = $row["emp_id"]; $person_group = $row["person_group"] ?? null; $person_name = $row["person_name"] ?? null; $first_name = $row["first_name"] ?? null; $last_name = $row["last_name"] ?? null; $common_id = $emp_id . "|" . $date; $get_employee = $employee->get(array($emp_id), array("emp_id")); if (!$get_employee) { $count++; $absent[] = $row; } } } goto xLp3C; RAJ0e: include $_SERVER["DOCUMENT_ROOT"] . "/include.php"; goto izT3C; V94qE: goto p7eJJ; goto D3CA3; D3CA3: A5qSj: goto sCQji; ip7R4: p7eJJ: goto S_8yf; mGbFS: YqbwC: goto fPeEF; iT7_R: yWG64: goto Y8VtH; HrCWw: goto n3HaG; goto myW3X; NKsuW: goto M53gY; goto ip7R4; yxnfQ: yOBYM: goto p7ESM; T3flx: ps4Gg: goto ybLaf; rKGEa: $get_attendance = $attendance->getAll(); goto V94qE; h2Z29: $employee_attendance = strtolower(isset($_GET["employee"]) ? $_GET["employee"] : null); goto DikRg; izT3C: goto yWG64; goto mGbFS; myW3X: n3HaG: goto LnHNn; fN2Kc: A0HCD: goto rKGEa; Ch6sN: DBeiE: goto DnlKq; jcFS6: goto DSme1; goto gdpJL; xLp3C: goto A5qSj; goto zJ7gA; pbcVE: goto A0HCD; goto SVmLY; DnlKq: