Dashboard
$dashboard,
'icon' => 'bi-house-door',
'label' => 'Dashboard',
'title' => 'View a summary of key school statistics, recent activities and important updates.',
],
[
'href' => base_url('/parent/child_register'),
'icon' => 'bi-person-plus',
'label' => 'Register Students',
'title' => 'Add your child(ren) to the school’s database and update their basic info.',
],
[
'href' => base_url('/parent/enroll_classes'),
'icon' => 'bi-pencil-square',
'label' => 'Enroll in Classes',
'title' => 'Enroll registered students in their appropriate grade level or course.',
],
[
'href' => base_url('/parent/invoice_payment'),
'icon' => 'bi-credit-card',
'label' => 'Invoice',
'title' => 'View and pay your child(ren)\'s invoice securely (tuition & events).',
],
[
'href' => base_url('/parent/attendance'),
'icon' => 'bi-calendar-check',
'label' => 'Attendance',
'title' => 'Track attendance record of your child(ren) (absences & late arrivals).',
],
[
'href' => base_url('parent/report-attendance'),
'icon' => 'bi-megaphone',
'label' => 'Report Absence',
'title' => 'Let the school know about an absence, late arrival, or early dismissal.',
],
[
'href' => base_url('/parent/scores'),
'icon' => 'bi-clipboard-data',
'label' => 'Scores',
'title' => 'Review progressive academic score for the year (homeworks, projects and exams).',
],
[
'href' => base_url('/parent/report-cards'),
'icon' => 'bi-file-earmark-text',
'label' => 'Report Cards',
'title' => 'View and acknowledge student report cards.',
],
[
'href' => base_url('/parent/progress'),
'icon' => 'bi-journal-check',
'label' => 'Class Progress',
'title' => 'View weekly class progress shared by teachers.',
],
[
'href' => base_url('/parent/events'),
'icon' => 'bi-bell',
'label' => 'Events',
'title' => 'Manage participation in planned school activities such as field trips or competitions.',
'badge' => !empty($activeEventCount) ? $activeEventCount : null,
],
[
'href' => base_url('/parent/calendar'),
'icon' => 'bi-calendar-day',
'label' => 'Calendar',
'title' => 'View school-wide calendar of classes, events and holidays.',
],
];/*
if ($scoreCardEnabledRole) {
$parentLinks[] = [
'href' => base_url('student/score-card/list'),
'icon' => 'bi-card-list',
'label' => 'Score Card',
'title' => 'Open a student score card.',
];
}*/
usort($parentLinks, static function ($a, $b) {
$la = strtolower((string)($a['label'] ?? ''));
$lb = strtolower((string)($b['label'] ?? ''));
if ($la === 'dashboard' && $lb !== 'dashboard') return -1;
if ($lb === 'dashboard' && $la !== 'dashboard') return 1;
return strcasecmp($la, $lb);
});
?>
$dashboard,
'icon' => 'bi-house-door',
'label' => 'Dashboard',
'title' => 'View notices, summary stats and recent updates.',
],
[
'href' => base_url('/teacher/class_view'),
'icon' => 'bi-pencil-square',
'label' => 'Class',
'title' => 'Manage your assigned class list.',
],
[
'href' => base_url('/teacher/showupdate_attendance?class_section_id=' . ($class_section_id ?? '')),
'icon' => 'bi-calendar-check',
'label' => 'Attendance',
'title' => 'Update student attendance records.',
],
[
'href' => base_url('/teacher/absence'),
'icon' => 'bi-megaphone',
'label' => 'TimeOff',
'title' => 'Report your absence or vacation days.',
],
[
'href' => base_url('teacher/print-requests'),
'icon' => 'bi-printer',
'label' => 'Print',
'title' => 'Submit and track print/copy requests.',
],
[
'href' => base_url('teacher/progress/submit'),
'icon' => 'bi-clipboard-check',
'label' => 'Class Progress',
'title' => 'Submit weekly class progress.',
],
[
'href' => base_url('/teacher/scores'),
'icon' => 'bi-clipboard-data',
'label' => 'Scores',
'title' => 'Input, view and update student scores.',
],
[
'href' => base_url('/teacher/competition-scores'),
'icon' => 'bi-trophy',
'label' => 'Competitions',
'title' => 'Enter competition scores for your class.',
],
[
'href' => base_url('/teacher/exam-drafts'),
'icon' => 'bi-file-earmark-text',
'label' => 'Exam Drafts',
'title' => 'Submit or review draft exams that need administrator approval.',
],
[
'href' => base_url('inventory/books/distribute'),
'icon' => 'bi-book',
'label' => 'Books',
'title' => 'Review and distribute books.',
],
[
'href' => base_url('/teacher/calendar'),
'icon' => 'bi-calendar-day',
'label' => 'Calendar',
'title' => 'View school-wide calendar of classes, events, and holidays.',
],
];
if ($scoreCardEnabledRole) {
$teacherLinks[] = [
'href' => base_url('student/score-card/list'),
'icon' => 'bi-card-list',
'label' => 'Score Card',
'title' => 'Open a student score card.',
];
}
usort($teacherLinks, static function ($a, $b) {
$la = strtolower((string)($a['label'] ?? ''));
$lb = strtolower((string)($b['label'] ?? ''));
if ($la === 'dashboard' && $lb !== 'dashboard') return -1;
if ($lb === 'dashboard' && $la !== 'dashboard') return 1;
return strcasecmp($la, $lb);
});
?>
Please contact administration to assign a role to your account.
strtolower(trim((string)$r)), (array) (session()->get('roles') ?? []));
$current = strtolower((string) (session()->get('role') ?? 'guest'));
$other = array_values(array_filter($allRoles, fn($r) => $r !== '' && $r !== $current));
$styleCfg = config('Style');
$sess = session();
$currentAccent = $sess->get('style_color') ?? ($styleCfg->defaultStyle ?? 'blue');
$currentMenu = $sess->get('menu_color') ?? ($styleCfg->defaultMenu ?? 'white');
?>