college-courses/resources/views/livewire/course/course-homepage.blade.php

28 lines
998 B
PHP
Raw 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.

<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')}}">
&longleftarrow; Вернуться назад
</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>