Purpose
Open Academic Timetable → Academic Week Setup (/academic/week/setup). This module defines recurring weekdays for ordinary instruction and, separately, practice in each academic year. It does not define numbered semester weeks, instruction start/end dates or the every-week/alternate-week frequency.
The page has two tabs:
- Academic Weeks — type
academic, the ordinary lesson-week day set. - Practice Weeks — type
practice, a separate practice-day configuration.
There can be one active record of each type per academic year. There are no separate configurations by faculty, year of study, learning format or profession.
Create an academic week
- Press Add in the Academic Weeks tab.
- Select an academic year, e.g. 2026/27.
- In Weekdays, select Monday, Tuesday, Wednesday, Thursday and Friday. This field allows multiple selections.
- Save. The table displays the year, five weekday names and Duration 5.
Duration is the number of selected weekdays, not hours or the number of weeks. The server accepts a week_days array with at least one element; valid weekday numbers are 1 (Monday) through 7 (Sunday). Names follow the interface language.
| Example configuration | Days | Duration |
|---|---|---|
| Five-day instruction | Mon–Fri | 5 |
| Six-day instruction | Mon–Sat | 6 |
| Weekday-only practice | Mon–Fri | 5 |
| Weekend instruction | Sat, Sun | 2 |
Configure a practice week
Open Practice Weeks, press Add and select the same academic year. For example, lessons run Mon–Fri while practice is allowed Mon–Sat. Create two independent configurations: five academic days and six practice days. The tab determines the type; the form has no separate type selector.
Both tabs have pagination, search and the academic-year filter. The server also supports filtering by type, which the tab supplies automatically. Server text search targets the record type, so use the year filter when looking for a particular year.
How the setting is used
When the ordinary lesson schedule loads, it requests type academic for its academic year. Selected weekdays determine the displayed day columns and schedule editing options. The configuration ID is used when creating a lesson, alongside the actual weekday and academic hour. Educator unavailable-day configuration also requests the academic year’s academic record.
When the ordinary week configuration is absent but lessons already exist, the schedule interface can derive fallback displayed days from saved entries. This does not mean the missing configuration has been created. Set the correct academic week before building a schedule.
Changing the weekday set, such as removing Saturday, does not automatically regenerate saved schedule entries or journal days. Review existing entries and new-lesson date previews. The server preview generates occurrences from the actual lesson weekday, frequency, academic period bounds and calendar exceptions. Practice weeks are a separate stored type; the ordinary scheduling and educator unavailability screens in the verified implementation request academic, not practice.
A Duration of 5 does not mean every calendar week has five effective working dates. Holidays and date transfers are configured separately. A Saturday can be outside the ordinary weekday set but a Monday-to-Saturday transfer can still be proposed within the suitable period. Non-Working Days · Academic hours
Editing, deletion and restoration
To change a year's day set, edit the existing row. The uniqueness validation rejects a second active record with the same year and type. The same year in the other tab is valid.
Deletion marks the record as deleted rather than physically removing it. Use the current tab's trash to restore a record. Do not restore an old record if a new active record already exists for its year and type: the restore operation clears the deletion marker without separately revalidating year/type uniqueness. Establish which record should be active first.
Access and scopes
The module is guarded by slug week-setup. Both tabs use the academic-week API.
| Operation | Permission |
|---|---|
| List | academic-week.index |
| Add | academic-week.store |
| Edit | academic-week.update |
| Delete | academic-week.destroy |
| Trash | academic-week.deleted-items |
| Restore | academic-week.restore |
The frontend groups prefixed AcademicWeek and PracticeWeeks both map to these permissions. For loading the academic-year reference list while viewing, adding or editing, academic-years.index is required. No Faculty, Department, Profession or Subject scopes are declared. Year and type are data criteria, not role scopes.
Troubleshooting
- Academic year not available: check the academic-year catalogue and its viewing permission.
- Record will not save: select at least one day and check whether an active record already exists for the same year and type.
- Weekend missing in lesson schedule: confirm that the day is in the ordinary academic week for that schedule's year, not just the practice week.
- Old lessons remain: changing the weekday set does not regenerate saved lessons. Review the schedule separately.
- Holiday still appears as a weekday: the recurring week structure and specific calendar exceptions are different settings. Check the generated-date preview.
Source references
- frontend-edusystems · AcademicWeeksDescriptor.tsx
- frontend-edusystems · AcademicWeekService.ts
- frontend-edusystems · AcademicWeeks.tsx
- frontend-edusystems · PracticeWeeksDescriptor.tsx
- frontend-edusystems · PracticeWeeksService.ts
- frontend-edusystems · PracticeWeeks.tsx
- frontend-edusystems · useGetWeekdays.ts
- frontend-edusystems · permissionActionMap.json
- frontend-edusystems · thunk.ts
- frontend-edusystems · index.ts
- frontend-edusystems · index.tsx
- frontend-edusystems · thunk.ts
- backend-edusystems · ModulesSeeder.php
- backend-edusystems · api.php
- backend-edusystems · AcademicWeekRequest.php
- backend-edusystems · FilterAcademicWeekRequest.php
- backend-edusystems · AcademicWeekRepository.php
- backend-edusystems · AcademicWeekTableRepository.php
- backend-edusystems · AcademicWeek.php
- backend-edusystems · EmployeeScheduleOccurrencePlanner.php
- backend-edusystems · StoreEmployeeScheduleRequest.php