prepare($sql); $stmt->bind_param("i", $employer_id); $stmt->execute(); $result = $stmt->get_result(); // Handle status updates if posted if (isset($_POST['update_status']) && isset($_POST['application_id']) && isset($_POST['new_status'])) { $application_id = intval($_POST['application_id']); $new_status = $_POST['new_status']; $allowed_statuses = ['Pending', 'Accepted', 'Rejected']; if (in_array($new_status, $allowed_statuses)) { $update_sql = "UPDATE applications SET status = ? WHERE application_id = ?"; $update_stmt = $conn->prepare($update_sql); $update_stmt->bind_param("si", $new_status, $application_id); $update_stmt->execute(); // Refresh the page to show updated status header("Location: ".$_SERVER['PHP_SELF']); exit(); } } ?> View Applications

Applications Received

num_rows > 0): ?>
fetch_assoc()): ?>
Job Title Applicant Contact Skills Date Status Actions
'badge-warning', 'Accepted' => 'badge-success', 'Rejected' => 'badge-error', default => 'badge-ghost' }; ?>

No Applications Yet

No applications have been received yet for your job postings.