Reading file size
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<x-layout>
|
||||
<h1>
|
||||
{{ $course->name }}
|
||||
<a href="/">List</a> » {{ $course->name }}
|
||||
</h1>
|
||||
|
||||
<a href="{{ route('course.sync', ['course' => $course->id]) }}">Sync all chapters offline</a>
|
||||
@@ -10,6 +10,8 @@
|
||||
<th>Title</th>
|
||||
<th>Duration</th>
|
||||
<th>Sync offline</th>
|
||||
<th>Synced offline</th>
|
||||
<th>File size</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach($course->chapters()->get() as $chapter)
|
||||
@@ -18,12 +20,14 @@
|
||||
<td>{{ $chapter->duration }}</td>
|
||||
<td>{{ $chapter->sync_offline?'Yes':'no' }}</td>
|
||||
<td>{{ $chapter->is_video_file?'Yes':'-' }}</td>
|
||||
<td>{{ $chapter->video_size_human }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Total: {{ $course->course_duration }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Size: {{ $course->total_size_human }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user