allow sorting by course name and published date, link to manually update course details,
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
<h1>
|
||||
<a href="/" class="text-decoration-none">List</a> » {{ $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>
|
||||
|
||||
Reference in New Issue
Block a user