diff --git a/app/Http/Controllers/StudentController.php b/app/Http/Controllers/StudentController.php
index 7e436b54..081876b7 100644
--- a/app/Http/Controllers/StudentController.php
+++ b/app/Http/Controllers/StudentController.php
@@ -63,7 +63,7 @@ class StudentController extends Controller
$system = app('system_settings');
$fields = $system?->fields ?? [];
$showCourseCertificate = $fields['show_course_certificate'] ?? true;
- $showCourseMarksheet = $fields['show_course_marksheet'] ?? true;
+ $showCourseMarksheet = $fields['show_course_marksheet'] ?? $showCourseCertificate;
if ($tab === 'certificate' && !$showCourseCertificate && !$showCourseMarksheet) {
return redirect()->route('student.course.show', ['id' => $id, 'tab' => 'modules']);
diff --git a/app/Services/StudentService.php b/app/Services/StudentService.php
index cb84dc00..1fb26f7e 100644
--- a/app/Services/StudentService.php
+++ b/app/Services/StudentService.php
@@ -188,7 +188,7 @@ class StudentService extends MediaService
$system = app('system_settings');
$fields = $system?->fields ?? [];
$showCourseCertificate = $fields['show_course_certificate'] ?? true;
- $showCourseMarksheet = $fields['show_course_marksheet'] ?? true;
+ $showCourseMarksheet = $fields['show_course_marksheet'] ?? $showCourseCertificate;
return [
'modules' => $tab === 'modules' ? $this->getCourseModules($course_id) : null,
diff --git a/resources/js/pages/course-player/partials/content-list.tsx b/resources/js/pages/course-player/partials/content-list.tsx
index 33779902..8d20d966 100644
--- a/resources/js/pages/course-player/partials/content-list.tsx
+++ b/resources/js/pages/course-player/partials/content-list.tsx
@@ -30,6 +30,9 @@ const ContentList = ({ completedContents, courseCompletion }: ContentListProps)
const { course, zoomConfig, section, watchHistory, translate, direction, system } = props;
const { button, common, frontend } = translate;
const showCourseCertificate = system?.fields?.show_course_certificate ?? true;
+ const showCourseMarksheet = system?.fields?.show_course_marksheet ?? showCourseCertificate;
+ const showCertificateTab = showCourseCertificate || showCourseMarksheet;
+ const certificateLabel = showCourseCertificate ? frontend.course_certificate : button.marksheet || 'Notenblatt';
// Get live classes from course data
const liveClasses = course.live_classes || [];
@@ -116,11 +119,11 @@ const ContentList = ({ completedContents, courseCompletion }: ContentListProps)
@@ -131,7 +134,7 @@ const ContentList = ({ completedContents, courseCompletion }: ContentListProps)
Kurs abschließen
) : (
-