28 lines
998 B
PHP
28 lines
998 B
PHP
<div class="max-w-[1400px] mx-auto lg:mt-[100px] lg:mb-[100px] mt-8 mb-8 px-4 py-2">
|
||
<x-ui.route-link link="{{url()->route('catalog')}}">
|
||
⟵ Вернуться назад
|
||
</x-ui.route-link>
|
||
@can('course-update', $course)
|
||
|
|
||
<x-ui.route-link link="{{url()->route('course-edit', ['course'=>$course])}}">
|
||
Редактировать
|
||
</x-ui.route-link>
|
||
@endcan
|
||
<main>
|
||
<x-page-heading class="mb-4">
|
||
{{ $course->name }}
|
||
</x-page-heading>
|
||
<ul class="grid gap-4">
|
||
@foreach ($course->lessons as $lesson)
|
||
<li class="border-l-4 text-lg border-l-gray-400 duration-75 shadow-md hover:shadow-lg hover:border-l-gray-700">
|
||
<a class="block p-4" href="{{url()->route('lesson', ['course'=>$course, 'lesson'=>$lesson->slug])}}">
|
||
{{$lesson->name}}
|
||
</a>
|
||
</li>
|
||
@endforeach
|
||
</ul>
|
||
</main>
|
||
</div>
|
||
<footer class="grid place-items-center w-full text-gray-400 py-16">
|
||
Создано для ВСК
|
||
</footer> |