allow sorting by course name and published date, link to manually update course details,

This commit is contained in:
Krzysztof Płaczek
2023-04-07 14:43:51 +02:00
parent 32ead90121
commit a15c6a1a44
6 changed files with 51 additions and 11 deletions

View File

@@ -2,8 +2,10 @@
<h1>
<a href="/" class="text-decoration-none">List</a> &raquo; {{ $course->name }}
</h1>
<a href="{{ 'https://symfonycasts.com/screencast/'.$course->link }}">Visit course page</a>
<a href="{{ route('course.sync', ['course' => $course->id]) }}">Sync all chapters offline</a>
<a href="{{ route('course.update', ['course' => $course->id]) }}">Update course</a>
<table class="table">
<thead>
<tr>
@@ -16,7 +18,8 @@
</thead>
@foreach($course->chapters()->get() as $chapter)
<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', ['course' => $course->id, 'chapter' => $chapter->order]) }}"
class="text-decoration-none">{{ $chapter->title }}</a></td>
<td>{{ $chapter->duration }}</td>
<td>{{ $chapter->sync_offline?'Yes':'no' }}</td>
<td>{{ $chapter->is_video_file?'Yes':'-' }}</td>