@extends('layouts.admin') @section('content')
@if($course->course_type == COURSE_TYPE_GENERAL || $course->course_type == COURSE_TYPE_LIVE_CLASS)

{{ __('Course Lessons and Lectures') }}

@forelse(@$course->lessons as $key => $lesson)

@if($course->course_type == COURSE_TYPE_GENERAL) @forelse($lesson->lectures as $lecture) @if($lecture->type == 'video')
play
{{$lecture->title}}
Preview {{ $lecture->file_duration }}
@elseif($lecture->type == 'youtube')
play
{{$lecture->title}}
Preview {{ $lecture->file_duration }}
@elseif($lecture->type == 'vimeo')
play
{{$lecture->title}}
Preview Video
@elseif($lecture->type == 'text')
text
{{$lecture->title}}
Preview {{ $lecture->file_duration }}
@elseif($lecture->type == 'image')
image
{{$lecture->title}}
Preview Image
@elseif($lecture->type == 'pdf')
PDF
{{$lecture->title}}
Preview PDF
@elseif($lecture->type == 'slide_document')
Slide Doc
{{$lecture->title}}
Preview Slide
@elseif($lecture->type == 'audio')
play
{{$lecture->title}}
Preview
@endif @empty

{{ __('No Data Found') }}

@endforelse @else @forelse($lesson->live_class as $liveClass)
play
{{$liveClass->title}}
Preview {{ $liveClass->duration }}
@empty

{{ __('No Data Found') }}

@endforelse @endif
@empty

{{ __('No Data Found') }}

@endforelse
@else

{{ __('SCORM Course') }}

@endif

{{__('Enrolled Courses')}}

@forelse($students as $studentEnrollment) @empty @endforelse
{{__('Image')}} {{__('Title')}} {{__('Expired at')}} {{__('Validity')}} {{__('Status')}}
course {{ $studentEnrollment->name }} {{ $studentEnrollment->end_date }} {{ (checkIfExpired($studentEnrollment)) ? (checkIfLifetime($studentEnrollment->end_date) ? __('Lifetime') : \Carbon\Carbon::now()->diffForHumans( \Carbon\Carbon::parse($studentEnrollment->end_date), true).' '.__(' left') ) : __('Expired') }}
{{ __("No Student Found") }}
{{$students->links()}}
@endsection @push('style') @endpush @push('script') @endpush