@extends('web.layouts.layout') @section('content') @include('web.partials._play_video', [ 'video' => $course->intro_video_link ?? $course->units->flatMap->lessons->first()?->video_link ?? null, 'iframeHeight' => 500, ]) {{ __('users::teachers.teacher2') }} / {{ $course->user->name ?? $course->user->username ?? "" }} {{ __('courses::courses.about_course') }} {{ __('ratings::ratings.ratings') }} {{ $course->currentDescription->title ?? "" }} {!! $course->currentDescription->description ?? "" !!} @include('web.courses::show._schedule') @include('web.courses::show._rating_list') {{ __('courses::courses.course_content') }} @if($course->units->isNotEmpty()) @foreach($course->units as $unit) {{ $unit->currentDescription->title ?? "" }} @if ($unit->lessons->isNotEmpty()) @foreach ($unit->lessons as $lesson) @php $isLessonRecorded = $lesson->type === 'recorded'; $href = $isLessonRecorded ? 'javascript:void(0);' : $lesson->live_link; $blank = $isLessonRecorded ? '' : 'target="_blank"'; $class = $isLessonRecorded ? 'get-lesson' : ''; $attributes = $isLessonRecorded ? "data-id=\"{$lesson->id}\"" : ''; @endphp {{ __('courses::courses.video') }}: {{ $lesson->currentDescription->title ?? "" }} @if($isLessonRecorded) @else {{ __('courses::courses.live') }} @endif @if($lesson->exam) @if ($lesson->hasUserPassedExam(auth()->user())) {{ __('exams::exams.lesson_quiz_solved') }} @else {{ __('exams::exams.lesson_quiz') }} @endif @endif @endforeach @endif @endforeach @endif @endsection @push('stack_scripts') @endpush