repository->findAllUpcoming(); include USC_PLUGIN_DIR . 'templates/admin/lessons.php'; } public function renderInstructorLessons(): void { if ( ! current_user_can( RoleManager::CAP_VIEW_LESSONS ) ) { wp_die( esc_html__( 'You do not have permission to view lessons.', 'unsupervised-schedular' ) ); } $lessons = $this->repository->findUpcomingForInstructor( get_current_user_id() ); include USC_PLUGIN_DIR . 'templates/admin/lessons.php'; } }