@extends('frontend.frontend-master') @section('style') @endsection @section('content')
@foreach($course->curriculum as $curriculum)

{{optional($curriculum->lang_front)->title}}

@if(optional($curriculum->lang_front)->description )

{!! optional($curriculum->lang_front)->description !!}

@endif
{{optional($curriculum->lesson)->count()}} {{__('Lessons')}}
@endforeach
@if($allowed_to_access_content || optional($preview_lesson)->preview === 'yes' ) @if(optional($preview_lesson)->video_embed_code)
{!! optional($preview_lesson)->video_embed_code !!}
@endif
{!! optional(optional($preview_lesson)->lang_front)->description ?? ''!!}
@if(file_exists('assets/uploads/course-lesson/'.optional($preview_lesson)->file)) {{optional($preview_lesson)->file}} @endif
@else
{!! sprintf(__('This content is protected, please %s and enroll course to view this content!'),''.__('Login').'') !!}
@endif
@endsection @section('scripts') @endsection