Info and filtering by course tracks, table of content on chapter view with links and previous and next buttons.
This commit is contained in:
@@ -25,6 +25,19 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div>
|
||||
<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', ['course' => $courseChapter->course_id, 'chapter' => $courseChapter->order ]) }}" class="text-decoration-none">{{ $courseChapter->title }}</a>
|
||||
</td>
|
||||
<td class="text-end">{{ $courseChapter->duration }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col">
|
||||
@if($next)
|
||||
@@ -35,6 +48,7 @@
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</x-layout>
|
||||
|
||||
Reference in New Issue
Block a user