Working interface and parsed symfony cast data to a database.
This commit is contained in:
14
resources/views/course/index.blade.php
Normal file
14
resources/views/course/index.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<x-layout>
|
||||
<h1>
|
||||
{{ $course->name }}
|
||||
</h1>
|
||||
|
||||
<table class="table">
|
||||
@foreach($course->chapters()->get() as $chapter)
|
||||
<tr>
|
||||
<td><a href="{{ route('course.chapter', ['chapter' => $chapter->id]) }}">{{ $chapter->title }}</a></td>
|
||||
<td>{{ $chapter->duration }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</x-layout>
|
||||
Reference in New Issue
Block a user