Reading file size

This commit is contained in:
Krzysztof Płaczek
2022-12-05 19:39:12 +01:00
parent 55c104629f
commit b992d05312
5 changed files with 47 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<x-layout>
<h1>
{{ $course->name }}
<a href="/">List</a> &raquo; {{ $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>