@if($edit) {{__('common.Edit')}} @else {{__('common.Add')}} @endif {{__('courses.Lesson')}}

@method('PUT') @else class="form-horizontal" method="POST" action="{{ route('saveChapter') }}" enctype="multipart/form-data"> @endif @csrf
@if ($errors->has('chapter_name')) {{ $errors->first('chapter_name') }} @endif
@if ($errors->has('chapter_name')) {{ $errors->first('chapter_name') }} @endif
@if ($errors->has('host')) {{ $errors->first('host') }} @endif
host!="URL" && $edit->host!="m3u8" && $edit->host!="Editor")) || !isset($edit)) none @endif">
host!="URL" && $edit->host!="m3u8")) || !isset($edit)) none @endif"> host??'')=="URL" || ($edit->host??'')=="m3u8"){{$edit->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(config('vimeo.connections.main.upload_type')=="Direct")
has('image') ? 'autofocus' : ''}} placeholder="{{__('courses.Browse Video file')}}" readonly="">
@else @endif @if ($errors->has('vimeo')) {{ $errors->first('vimeo') }} @endif
@if (isModuleActive('BunnyStorage'))
@if(saasEnv('BUNNY_UPLOAD_TYPE')=="Direct")
has('image') ? 'autofocus' : ''}} placeholder="{{__('courses.Browse Video file')}}" readonly="">
@else @endif @if ($errors->has('bunny')) {{ $errors->first('bunny') }} @endif
@endif
@if ($errors->has('vdocipher')) {{ $errors->first('vdocipher') }} @endif
@php $ignoreHost=[ 'SCORM', 'SCORM-AwsS3', 'XAPI'. 'XAPI-AwsS3', 'H5P', 'GoogleDrive' ]; @endphp
host??'')=="BunnyStream") || (($edit->host??'')=="Youtube")|| (($edit->host??'')=="VdoCipher")|| (($edit->host??'')=="Iframe")|| $edit->host == 'Storage' || $edit->host == 'm3u8' || (($edit->host??'')=="URL")) ) || !isset($edit)) none @endif">
@if ($errors->has('is_lock')) {{ $errors->first('is_lock') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif