0) {
$pageNotifications[] = [
'level' => 'danger',
'message' => "{$missingItemsCount} missing item" . ($missingItemsCount === 1 ? '' : 's') . " awaiting teacher uploads.",
];
}
if ($completionPercent < 70) {
$pageNotifications[] = [
'level' => 'warning',
'message' => "Submission completion is below 70% — follow up with remaining teachers.",
];
}
if ($flaggedClasses > 0) {
$pageNotifications[] = [
'level' => 'warning',
'message' => "Progress is under 50% for {$flaggedClasses} class section" . ($flaggedClasses === 1 ? '' : 's') . ".",
];
}
if (empty($rows)) {
$pageNotifications[] = [
'level' => 'info',
'message' => 'No class-section assignments submitted yet; encourage teachers to upload drafts.',
];
}
if (empty($pageNotifications)) {
$pageNotifications[] = [
'level' => 'info',
'message' => 'All tracked classes are current. Use the controls below to send reminders.',
];
}
$examDraftDeadlineConfig = $examDraftDeadlineConfig ?? '';
$examDraftDeadlineFormatted = $examDraftDeadlineFormatted ?? '';
?>
getFlashdata('success')): ?>
= esc(session()->getFlashdata('success')) ?>
getFlashdata('warning')): ?>
= esc(session()->getFlashdata('warning')) ?>
getFlashdata('info')): ?>
= esc(session()->getFlashdata('info')) ?>
$row) {
$classKey = (string) ($row['class_section_id'] ?? $row['class_section'] ?? 'class_' . $idx);
$groupedRows[$classKey][] = $row;
}
?>
Completion
= esc($completionPercent) ?>%
Missing items
= esc($missingItemsCount) ?>
= esc($submittedItems) ?> submitted / = esc($totalItems) ?> total
Submissions
= esc($submittedItems) ?>
= esc($totalItems) ?> teachers tracked
Flagged
= esc($flaggedClasses) ?>
Sections under 50% complete
-
= esc($notification['message']) ?>