No Agent Selected
Please go to the main dashboard and click on an agent's name to see their reports.
| Agent | Date | Amount | Description | Status |
|---|---|---|---|---|
|
$ |
prepare("SELECT id, agent_name, amount, description, status, created_at FROM expense_reports WHERE agent_name = ? ORDER BY created_at DESC"); $stmt->execute([$agent_name]); $reports = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // For a real app, log this error instead of displaying it die("Database error: " . $e->getMessage()); } } function getStatusClass($status) { switch ($status) { case 'Approved': return 'bg-green-100 text-green-800'; case 'Rejected': return 'bg-red-100 text-red-800'; case 'Pending': default: return 'bg-yellow-100 text-yellow-800'; } } ?>
Please go to the main dashboard and click on an agent's name to see their reports.
| Agent | Date | Amount | Description | Status |
|---|---|---|---|---|
|
$ |