22 lines
820 B
PHP
22 lines
820 B
PHP
|
@component('layouts.base')
|
|||
|
<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('course-index', ['course'=>$course])}}">
|
|||
|
⟵ Вернуться назад
|
|||
|
</x-ui.route-link>
|
|||
|
@can('course-update', $course)
|
|||
|
|
|
|||
|
<x-ui.route-link link="{{url()->route('lesson-edit', ['course'=>$course, 'lesson' =>$lesson->slug])}}">
|
|||
|
Редактировать
|
|||
|
</x-ui.route-link>
|
|||
|
@endcan
|
|||
|
<main>
|
|||
|
<article class="prose lg:prose-lg max-w-none">
|
|||
|
@markdown('# '.$lesson->name . "\n\n[TOC]\n\n".$lesson->body)
|
|||
|
</article>
|
|||
|
</main>
|
|||
|
</div>
|
|||
|
<footer class="grid place-items-center w-full text-gray-400 py-16">
|
|||
|
Создано для ВСК
|
|||
|
</footer>
|
|||
|
@endcomponent
|