Moved video files to public/videos directory, small refactoring.
This commit is contained in:
@@ -26,18 +26,18 @@
|
||||
<td class="align-middle">{{ $course->status }}</td>
|
||||
<td class="align-middle">
|
||||
@foreach( explode(',', $course->tracks) as $track)
|
||||
<a href="/track/{{ $track }}" class="badge rounded-pill bg-secondary">{{ $track }}</a>
|
||||
<a href="/track/{{ $track }}" class="badge rounded-pill bg-secondary text-decoration-none">{{ $track }}</a>
|
||||
@endforeach
|
||||
</td>
|
||||
<td class="align-middle"><a class="btn btn-outline-primary"
|
||||
href="{{ route('course.sync', ['course' => $course->id]) }}">Sync all
|
||||
chapters offline</a></td>
|
||||
<td class="align-middle">{{ $course->chapters_count }} / {{ $course->numberofchapters }}</td>
|
||||
<td class="align-middle">{{ $course->chapters_to_sync }} / {{ $course->numberofchapters }}</td>
|
||||
<td class="align-middle"><abbr
|
||||
title="{{ $course->published_at?->format('Y-m-d') }}">{{ $course->published_at?->diffForHumans() }}</abbr>
|
||||
</td>
|
||||
<td class="align-middle text-end pe-4">{{ $course->total_size_human }}</td>
|
||||
<td class="align-middle text-end pe-4">{{formatFileSize(folderSize(public_path($course->id)))}}</td>
|
||||
<td class="align-middle text-end pe-4">{{formatFileSize(folderSize(public_path('videos'.DIRECTORY_SEPARATOR.$course->id)))}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user