@php
$lessons = App\Models\Lesson::where('id', $id)->first();
$sections = App\Models\Section::where('course_id', $lessons->course_id)
->orderBy('sort')
->get();
$select_section = App\Models\Section::where('id', $lessons->section_id)->value('title');
@endphp
{{ get_phrase('Lesson type') }}:
@if ($lessons->lesson_type == 'html5')
{{ get_phrase('Video url') . ' [.mp4]' }}
@elseif ($lessons->lesson_type == 'system-video')
{{ get_phrase('Video file') }}
@elseif ($lessons->video_type == 'youtube' || $lessons->video_type == 'vimeo')
{{ get_phrase($lessons->video_type) }} {{ get_phrase('Video') }}
@elseif($lessons->lesson_type == 'google_drive_video')
{{ get_phrase('Google drive video') }}
@elseif($lessons->lesson_type == 'document_type')
{{ get_phrase('Document file') }}
@else
{{ $lessons->lesson_type }}
@endif
@include('admin.init')