marking chapters as complete and toggling value from course list and chapter page.
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
<table class="table table-sm">
|
||||
@foreach($chapters as $courseChapter)
|
||||
<tr class="@if($courseChapter->id === $chapter->id)table-dark @endif">
|
||||
<td><a href="{{ route('course.chapter.complete_toggle', ['course' => $courseChapter->course->id, 'chapter' => $courseChapter->id]) }}" class="text-decoration-none"><span class="icon-check {{ $courseChapter->is_complete?'text-info':'text-dark' }}"></span></a></td>
|
||||
<td>
|
||||
<a href="{{ route('course.chapter', ['course' => $courseChapter->course_id, 'chapter' => $courseChapter->order ]) }}"
|
||||
class="text-decoration-none">{{ $courseChapter->title }}</a>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
crossorigin="anonymous">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-dark-5@1.1.3/dist/css/bootstrap-nightfall.min.css"
|
||||
rel="stylesheet" media="(prefers-color-scheme: dark)">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.5.5/css/simple-line-icons.min.css">
|
||||
</head>
|
||||
<body>
|
||||
{{ $slot }}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<tr>
|
||||
<td><a href="{{ route('course.chapter', ['course' => $course->id, 'chapter' => $chapter->order]) }}"
|
||||
class="text-decoration-none">{{ $chapter->title }}</a></td>
|
||||
<td><a href="{{ route('course.chapter.complete_toggle', ['course' => $course->id, 'chapter' => $chapter->id]) }}" class="text-decoration-none"><span class="icon-check {{ $chapter->is_complete?'text-info':'text-dark' }}"></span></a></td>
|
||||
<td>{{ $chapter->duration }}</td>
|
||||
<td>{{ $chapter->sync_offline?'Yes':'no' }}</td>
|
||||
<td>{{ $chapter->is_video_file?'Yes':'-' }}</td>
|
||||
|
||||
Reference in New Issue
Block a user