@extends('backend.master') @section('mainContent') {!! generateBreadcrumb() !!}
@if($course->type==1)

@if(isset($editChapter) || isset($editLesson)) {{__('common.Edit')}} @else {{__('common.Add')}} @endif

@if(isset($editChapter) || isset($editLesson)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'updateChapter', 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'saveChapter', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif
@if(session()->has('message-success'))
{{ session()->get('message-success') }}
@elseif(session()->has('message-danger'))
{{ session()->get('message-danger') }}
@endif
@if ($errors->has('input_type')) {{ $errors->first('input_type') }} @endif
@php if(isset($editChapter)){ $show_chapter='block'; }else{ $show_chapter='none'; } @endphp
@if ($errors->has('chapter_name')) {{ $errors->first('chapter_name') }} @endif
@php if(isset($editLesson) && $editLesson->is_quiz==1){ $show_quiz='block'; }else{ $show_quiz='none'; } @endphp
@if ($errors->has('category')) {{ $errors->first('category') }} @endif
@if ($errors->has('category')) {{ $errors->first('category') }} @endif
@if ($errors->has('is_lock')) {{ $errors->first('is_lock') }} @endif
@php if(isset($editLesson) && $editLesson->is_quiz!=1){ $show_lesson='block'; }else{ $show_lesson='none'; } @endphp
@if ($errors->has('category')) {{ $errors->first('category') }} @endif
@if ($errors->has('chapter_name')) {{ $errors->first('chapter_name') }} @endif
@if ($errors->has('chapter_name')) {{ $errors->first('chapter_name') }} @endif
@if ($errors->has('category')) {{ $errors->first('category') }} @endif
host!="URL")) || !isset($editLesson)) none @endif"> host=="URL"){{$editLesson->video_url}} @endif @endif"> @if ($errors->has('video_url')) {{ $errors->first('video_url') }} @endif
video_url}} @endif @endif"> @if ($errors->has('video_url')) {{ $errors->first('video_url') }} @endif
@if ($errors->has('vimeo')) {{ $errors->first('vimeo') }} @endif
{{-- SCORM--}}
host=="Youtube")|| ($editLesson->host=="Iframe")|| ($editLesson->host=="URL")) ) || !isset($editLesson)) none @endif">
@if ($errors->has('is_lock')) {{ $errors->first('is_lock') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
{{ Form::close() }}
@endif

{{__('courses.Course')}}

@if(Session::has('type')) @php $type=Session::get('type'); @endphp @elseif (request()->get('type')) @php $type=request()->get('type'); @endphp @else @php if($course->type==1){ $type ='courses'; }else{ $type ='courseDetails'; } @endphp @endif
@if(count($chapters)==0)
{{__('courses.No Data Found')}}
@endif
@foreach($chapters as $chapter)
@foreach ($chapter->lessons as $key => $lesson)
@if ($lesson->is_quiz==1) @foreach ($lesson->quiz as $quiz) {{$key+1}}. {{@$quiz->title}} @endforeach @else {{$key+1}}. {{$lesson['name']}} [{{MinuteFormat($lesson['duration'])}}] [{{$lesson->is_lock==0?'unlock':'Lock'}}] @endif
@endforeach
@endforeach
@csrf
type==1?"checked":""}}>
type==2?"checked":""}}>
type!=1)style="display: none" @endif>
drip==0?"checked":""}}>
drip==1?"checked":""}}>
@php if ($course->discount_price>0){ $d_price='block'; }else{ $d_price='none'; } @endphp
trailer_link}}@endif" type="text"> @if ($errors->has('video_url')) {{ $errors->first('video_url') }} @endif
@if ($errors->has('vimeo')) {{ $errors->first('vimeo') }} @endif
host=="Youtube")) ) || !isset($course)) none @endif">
@if(count($course_exercises)==0) @endif @foreach($course_exercises as $key => $exercise_file) @endforeach
{{ __('common.SL') }} {{__('common.Name')}} {{ __('common.Download') }} {{ __('common.Action') }}
{{__('courses.No Data Found')}}
{{ $key+1 }} {{@$exercise_file->fileName }} @if (file_exists($exercise_file->file)) {{ __('common.Click To Download') }} @else {{__('common.File Not Found')}} @endif

{{__('subscription.Assign')}} {{__('certificate.Certificate')}}

@csrf
@csrf @if(count($chapters)==0) @endif @php $i=0; @endphp @foreach($chapters as $key1 => $chapter) @foreach ($chapter->lessons as $key => $lesson) @php $i++; @endphp @endforeach @endforeach @if(count($chapters)!=0) @endif
{{__('common.Name')}} {{__('common.Specific Date')}} {{__('common.Days After Enrollment')}}
{{__('courses.No Data Found')}}
@if ($lesson->is_quiz==1) {{$key+1}}. {{@$lesson['quiz'][0]['title']}} @else {{$key+1}}. {{$lesson['name']}} [{{MinuteFormat($lesson['duration'])}}] @endif unlock_date)):""}}">
unlock_date))checked @endif>
unlock_date))checked @endif value="2">
@endsection @push('scripts') @endpush