college-courses/resources/views/course-lesson.blade.php

22 lines
820 B
PHP
Raw Normal View History

2024-10-15 10:15:40 +03:00
@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])}}">
&longleftarrow; Вернуться назад
</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