@if(session()->has('success'))
{{session('success')}}
@endif @include('includes.partials.messages')
@if($lesson->lesson_image != "")
@endif @if ($test_exists)

@lang('labels.frontend.course.test') : {{$lesson->title}}

{!! $lesson->full_text !!}


@if (!is_null($test_result))
@lang('labels.frontend.course.your_test_score') : {{ $test_result->test_result }}
@if(config('retest'))
@csrf
@endif @if(count($lesson->questions) > 0 )
@foreach ($lesson->questions as $question)

{{ $loop->iteration }} . {{ $question->question }} @if(!$question->isAttempted($test_result->id)) @lang('labels.frontend.course.not_attempted') @endif


    @foreach ($question->options as $option)
  • {{ $option->option_text }} @if($option->correct == 1 && $option->explanation != null)

    @lang('labels.frontend.course.explanation')
    {{$option->explanation}}

    @endif
  • @endforeach

@endforeach @else

@lang('labels.general.no_data_available')

@endif @else
@if(count($lesson->questions) > 0 )
{{ csrf_field() }} @foreach ($lesson->questions as $question)

{{ $loop->iteration }}. {{ $question->question }}


@foreach ($question->options as $option)
@endforeach
@endforeach
@else

@lang('labels.general.no_data_available')

@endif
@endif
@else

{{$lesson->title}}

{!! $lesson->full_text !!}
@endif @if($lesson->mediaPDF)
{{----}}
@endif @if($lesson->mediaVideo && $lesson->mediavideo->count() > 0)
@if($lesson->mediavideo != "")
@if($lesson->mediavideo->type == 'youtube')
@elseif($lesson->mediavideo->type == 'vimeo')
@elseif($lesson->mediavideo->type == 'upload') @elseif($lesson->mediavideo->type == 'embed') {!! $lesson->mediavideo->url !!} @endif
@endif
@endif @if($lesson->mediaAudio)
@endif @if(($lesson->downloadableMedia != "") && ($lesson->downloadableMedia->count() > 0))

@lang('labels.frontend.course.download_files')

@foreach($lesson->downloadableMedia as $media) @endforeach
@endif