@extends('admin.layouts.master') @section('title','Edit Course-class') @section('maincontent') @include('admin.layouts.topbar',$data)
@if ($errors->any()) @endif
{{ __('Edit') }} {{ __('Course Class') }}
{{ csrf_field() }} {{ method_field('PUT') }}




@if($cate->type =="video")
url !="" ? 'checked' : "" }}> {{ __('URL') }}  video !="" ? 'checked' : "" }}> {{ __('UploadVideo') }}  iframe_url !="" ? 'checked' : "" }}> {{ __('IframeURL') }}  date_time !="" ? 'checked' : "" }}> {{ __('LiveClass') }}  @if($gsetting->aws_enable == 1) aws_upload !="" ? 'checked' : "" }}> {{ __('AWSUpload') }} @endif @if($gsetting->youtube_enable == 1)  {{ __('Youtube API') }}   @endif @if($gsetting->vimeo_enable == 1)  {{ __('Vimeo API') }}   @endif
@if($gsetting->aws_enable == 1)
video != NULL || $cate->iframe_url !=NULL || $cate->url) class="display-none" @endif >
{{ __('Upload') }}
@if($cate->aws_upload !="") @endif
@endif
video !=NULL || $cate->iframe_url !=NULL || $cate->aws_upload !=NULL) style="display:none" @endif >
url !=NULL || $cate->iframe_url !=NULL || $cate->aws_upload !=NULL) style="display:none" @endif >
{{ __('Upload') }}
@if($cate->video !="") @endif
url !=NULL || $cate->video !=NULL || $cate->aws_upload !=NULL) style="display:none" @endif >
iframe_url !=NULL || $cate->video !=NULL || $cate->aws_upload !=NULL || $cate->url !=NULL) style="display:none" @endif >

@endif @if($cate->type =="audio")
url !="" ? 'checked' : "" }}> {{ __('URL') }} audio !="" ? 'checked' : "" }} value="uploadaudio"> {{ __('UploadAudio') }}
audio != "") style="display:none" @endif >
url !="") style="display:none" @endif >
{{ __('Upload') }}

@if($cate->audio !="") @endif
@endif @if($cate->type =="image")
url !="" ? 'checked' : "" }}> {{ __('URL') }} image !="" ? 'checked' : "" }} value="uploadimage"> {{ __('UploadImage') }}
image !="") class="display-none" @endif >
url !="") class="display-none" @endif >
{{ __('Upload') }}

@if($cate->image !="") @endif

@endif @if($cate->type =="zip")
url !="" ? 'checked' : "" }}> {{ __('URL') }} zip !="" ? 'checked' : "" }} value="uploadzip"> {{ __('UploadZip') }}
zip !="") class="display-none" @endif >
url !="") class="d-none" @endif>
{{ __('Upload') }}

@if($cate->zip !="") @endif

@endif @if($cate->type =="pdf")
url !="" ? 'checked' : "" }}> {{ __('URL') }} pdf !="" ? 'checked' : "" }} value="uploadpdf"> {{ __('UploadPdf') }}
pdf !="") class="display-none" @endif >
pdf !="") class="display-none" @endif >
url !="") class="display-none" @endif >
{{ __('Upload') }}

@if($cate->pdf !="") @endif


@endif @if($cate->type =="video")

preview_type =="url" ) class="display-none" @endif id="document11">
{{ __('Upload') }}
@if($cate->preview_video !="") @endif
preview_type =="video") class="display-none" @endif id="document22">

@endif
-

eg: zip or pdf files

{{ __('Upload') }}
@if($cate->file != NULL) @endif






@if($cate->courses->drip_enable == 1)

drip_type == 'days' || $cate->drip_type == NULL) style="display: none;" @endif id="dripdate">
{{ __('When section should be unlock') }}.
drip_type == 'date' || $cate->drip_type == NULL) style="display: none;" @endif id="dripdays"> {{ __('Enter days') }}.

@endif
@if($cate->type =="video")
{{ __('Subtitle') }}
+ {{ __('Add') }} {{ __('Subtitle') }}


@foreach($subtitles as $subtitle) @endforeach
# {{ __('SubtitleLanguage') }} {{ __('Delete') }}
1 {{$subtitle->sub_lang}}
{{ csrf_field() }}
@endif
@endsection @section('script') @if($cate->type =="video") @endif @if($cate->type =="audio") @endif @if($cate->type =="image") @endif @if($cate->type =="zip") @endif @endsection @section('stylesheets') @endsection