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

22 lines
820 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@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