CAMPUS DIRECTOR THREE-MODULE UPDATE V22

Modules
1. Practical Attendance — route campus-director-attendance; grant key practical-attendance.
2. Student Logbook Verification — route campus-director-logbooks; grant key student-logbook-verification.
3. Student Projects — route campus-director-student-projects; grant key student-projects.

Security and scope
- All requests require an authenticated Campus Director.
- Each action calls cd_require_read_module() and obtains campus IDs from cd_allowed_campus_ids().
- GET-only endpoint. No create, edit, delete, verify, grading, or attendance-marking actions are exposed.
- Practical attendance is scoped by practical_attendance_sessions.campus_id.
- Logbook entries are scoped through logbook_entries.student_id -> students.id -> students.campus_id.
- Student projects are scoped by student_projects.campus_id and cross-checked against the student's current campus assignment.

Data shown
- Attendance: session date, campus, department, creator and counts by status.
- Logbooks: date, student, campus, department, verification state and activity text.
- Projects: date, student, project title, course, campus and grade status. No archive download or grading action.

Installation
1. Back up the application and database.
2. Upload the package preserving the slps/ directory structure.
3. No database migration is required; the V22 endpoint uses existing tables in the supplied schema.
4. Staff must grant each module separately in the Campus Director access screen.
5. Sign out/in and test with a Director assigned to a campus containing records.

Validation
- PHP syntax, JavaScript syntax and ZIP integrity checks should be run on deployment package.
- This package is not live-tested against the production database or browser.
- Confirm the installed database has the supplied schema columns, especially students.campus_id, practical_attendance_sessions.campus_id, and student_projects.campus_id.
