Info and filtering by course tracks, table of content on chapter view with links and previous and next buttons.

This commit is contained in:
Krzysztof Płaczek
2023-01-23 13:23:57 +01:00
parent d4d8330d83
commit 5902bf7c2b
9 changed files with 1024 additions and 477 deletions

View File

@@ -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>