<?php
/**
 * Attendance module Menu entries
 *
 * @uses $menu global var
 *
 * @see  Menu.php in root folder
 *
 * @package RosarioSIS
 * @subpackage modules
 */

$menu['Attendance']['admin'] = [
	'title' => _( 'Attendance' ),
	'default' => 'Attendance/Administration.php',
	'Attendance/Administration.php' => _( 'Administration' ),
	'Attendance/AddAbsences.php' => _( 'Add Absences' ),
	1 => _( 'Reports' ),
	'Attendance/TeacherCompletion.php' => _( 'Teacher Completion' ),
	'Attendance/Percent.php' => _( 'Average Daily Attendance' ),
	'Attendance/DailySummary.php' => _( 'Attendance Chart' ),
	2 => _( 'Utilities' ),
	'Attendance/FixDailyAttendance.php' => _( 'Recalculate Daily Attendance' ),
	'Attendance/DuplicateAttendance.php' => _( 'Delete Duplicate Attendance' ),
	3 => _( 'Setup' ),
	'Attendance/AttendanceCodes.php' => _( 'Attendance Codes' ),
] + issetVal( $menu['Attendance']['admin'], [] );

$menu['Attendance']['teacher'] = [
	'title' => _( 'Attendance' ),
	'default' => 'Attendance/TakeAttendance.php',
	'Attendance/TakeAttendance.php' => _( 'Take Attendance' ),
	'Attendance/DailySummary.php' => _( 'Attendance Chart' ),
] + issetVal( $menu['Attendance']['teacher'], [] );

$menu['Attendance']['parent'] = [
	'title' => _( 'Attendance' ),
	'default' => 'Attendance/DailySummary.php',
	'Attendance/DailySummary.php' => _( 'Daily Summary' )
] + issetVal( $menu['Attendance']['parent'], [] );

if ( $RosarioModules['Users'] )
{
	$menu['Users']['admin']['Users/TeacherPrograms.php&include=Attendance/TakeAttendance.php'] = _( 'Take Attendance' );
}

$exceptions['Attendance'] = [
	'Attendance/AddAbsences.php' => true
];
