@lang('study.content_title')
@if(isset($ContentDetails)) {{@$ContentDetails->content_title != ""? $ContentDetails->content_title:''}} @endif
@lang('study.content_type')
@if(isset($ContentDetails)) @if ($ContentDetails->content_type == "sy") @lang('study.syllabus') @elseif($ContentDetails->content_type == "as") @lang('study.assignment') @else @lang('study.other_downloads') @endif @endif
@lang('study.upload_date')
@if(isset($ContentDetails)) {{@$ContentDetails->upload_date != ""? dateConvert(@$ContentDetails->upload_date):''}} @endif
@lang('study.created_by')
@if(isset($ContentDetails)) {{@$ContentDetails->users->full_name}} @endif
@lang('study.available_for')
@if(isset($ContentDetails)) @if ($ContentDetails->available_for_admin == 1)

@lang('study.all_admins')

@endif @if ($ContentDetails->available_for_all_classes == 1)

@lang('study.all_classes')

@endif @if ($ContentDetails->class != "")

@lang('common.class'): {{$ContentDetails->classes->class_name}}

@endif @if ($ContentDetails->section != "")

@lang('common.section'): {{$ContentDetails->sections->section_name}}

@endif @if ($ContentDetails->section ==null)

@lang('common.section'): All Sections

@endif @endif
@if(@$ContentDetails->source_url != "")
@lang('study.source_url')
@if(isset($ContentDetails)) @if(@$ContentDetails->source_url != "") @if (moduleStatusCheck('VideoWatch')== TRUE) @lang('study.click_here') @else @lang('study.click_here') @endif @endif @endif
@endif
@lang('common.attach_file')
@if(@$ContentDetails->upload_file != "") @php $files_ext=pathinfo($ContentDetails->upload_file, PATHINFO_EXTENSION); @endphp @if ($files_ext=='jpg' || $files_ext=='jpeg' || $files_ext=='heic' || $files_ext=='png'|| $files_ext=='mp4'|| $files_ext=='mp3'|| $files_ext=='mov'|| $files_ext=='pdf') @else @lang('common.download') @endif @endif
@lang('common.description')
@if(isset($ContentDetails)) {{@$ContentDetails->description}} @endif
@php $std_file =$ContentDetails->upload_file; $ext =strtolower(str_replace('"]','',pathinfo($std_file, PATHINFO_EXTENSION))); $attached_file=str_replace('"]','',$std_file); $attached_file=str_replace('["','',$attached_file); $preview_files=['jpg','jpeg','png','heic','mp4','mov','mp3','mp4','pdf']; @endphp @if ($ext=='jpg' || $ext=='jpeg' || $ext=='png' || $ext=='heic') @elseif($ext=='mp4' || $ext=='mov') Your browser does not support HTML video. @elseif($ext=='mp3') Your browser does not support the audio element. @elseif($ext=='pdf') {{-- --}} @endif @if (!in_array($ext,$preview_files)) {{--

{{$ext}} File Not Previewable

--}}
{{$ext}} File Not Previewable.
@endif
{{-- --}} @php $set_filename=time().'_'.$std_file; @endphp @lang('common.download') {{-- {{route('download-uploaded-content-admin',$uploadedContent->id)}} --}}