diff --git a/tippspiel/public/index.php b/tippspiel/public/index.php index 32e3b27..05e2493 100644 --- a/tippspiel/public/index.php +++ b/tippspiel/public/index.php @@ -825,6 +825,22 @@ if ($page === 'reminder') { if ($currentSeason) { $payments = Payment::getPaymentsBySeason($currentSeason['id']); } + + // Status der anstehenden (ersten tippbaren) Runde für die Benutzerliste: + // fehlende Tipps und fehlender Joker je Benutzer. + $tippableRound = $currentSeason ? Round::getFirstTippable($currentSeason['id']) : null; + $missingTipps = []; + $missingJoker = []; + if ($tippableRound && !empty($users)) { + $missing = Tipp::getMissing( + (int)$tippableRound['id'], + array_map(function ($user) { + return (int)$user['id']; + }, $users) + ); + $missingTipps = array_flip($missing['tipps']); + $missingJoker = array_flip($missing['joker']); + } $editUser = null; if (isset($_GET['edit_id'])) { $editUser = User::findById((int)$_GET['edit_id']); diff --git a/tippspiel/src/Views/admin/users.php b/tippspiel/src/Views/admin/users.php index a0b479d..4cb0423 100644 --- a/tippspiel/src/Views/admin/users.php +++ b/tippspiel/src/Views/admin/users.php @@ -84,6 +84,10 @@ require __DIR__ . '/../partials/header.php';