<?php
include "$_SERVER[DOCUMENT_ROOT]/root.class.php";
include "$_SERVER[DOCUMENT_ROOT]/app/team_dashboard/classes/team_dashboard.class.php";
$db = new db_safeguard();
$team = new TeamDashboard($db);

// ✅ FIXED: Sanitize with intval() like the other ajax files do
$team_id = intval($_GET['team_id']);
echo $team->completedJobcards($team_id);