@extends('backEnd.master') @section('title') @lang('study.upload_content_list') @endsection @section('mainContent')

@if(isset($editData)) @lang('study.edit_upload_content') @else @lang('study.upload_content') @endif

@if(isset($editData)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'global-update-upload-content',@$editData->id, 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission(89)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'global-save-upload-content', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif
@if ($errors->has('content_title')) {{ $errors->first('content_title') }} @endif
@if ($errors->has('content_type')) {{ $errors->first('content_type') }} @endif

available_for_admin == "1"? 'checked':''}}> available_for_all_classes == "1" || @$editData->un_semester_label_id != "" || @$editData->class != "" || @$editData->section != ""? 'checked':''}}>
@if($errors->has('available_for')) {{ $errors->first('available_for') }} @endif
@php // if( @$editData->available_for_all_classes == "1" || @$editData->class != "" || @$editData->section != ""){ if(@$editData->available_for_all_classes == "1"){ $show = ""; $show1 = "disabledbutton"; }elseif(@$editData->class != "" || @$editData->section != ""){ $show = "disabledbutton"; $show1 = ""; }else{ $show = "disabledbutton"; $show1 = "disabledbutton"; } @endphp @if(!moduleStatusCheck('University'))
available_for_all_classes == "1"? 'checked':''}}>
@endif
@if(moduleStatusCheck('University')) @includeIf('university::common.session_faculty_depart_academic_semester_level',['required' => ['USN','UF', 'UD', 'US', 'USL'] , 'hide' => ['USUB','UA'],'row' => 1, 'div' => 'col-lg-12', 'mt' =>'mt-0']) @else
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@endif
@if ($errors->has('upload_date')) {{ $errors->first('upload_date') }} @endif
@if ($errors->has('source_url')) {{ $errors->first('source_url') }} @endif
upload_file):trans('study.file').''}}" id="placeholderUploadContent"> @if ($errors->has('content_file')) {{ $errors->first('content_file') }} @endif
(jpg,png,jpeg,pdf,doc,docx,mp4,mp3,txt are allowed for upload)
@php $tooltip = ""; if(userPermission(89) ){ @$tooltip = ""; }else{ @$tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('study.upload_content_list')

@if(moduleStatusCheck('University')) @else @endif @if(isset($uploadContents)) @foreach($uploadContents as $key=>$value) @if(moduleStatusCheck('University')) @endif @endforeach @endif
@lang('common.sl') @lang('study.content_title') @lang('common.type') @lang('common.date') @lang('study.available_for') @lang('university::un.semester_label') @lang('common.section') @lang('study.classSec') @lang('common.action')
{{$key+1}} {{@$value->content_title}} @if(@$value->content_type == 'as') @lang('study.assignment') @elseif(@$value->content_type == 'st') @lang('study.study_material') @elseif(@$value->content_type == 'sy') @lang('study.syllabus') @else @lang('study.other_download') @endif {{@$value->upload_date != ""? dateConvert(@$value->upload_date):''}} @if(@$value->available_for_admin == 1) @lang('study.all_admins')
@endif @if(@$value->available_for_all_classes == 1) @lang('study.all_classes_student') @endif @if(@$value->globalClasses != "" && $value->globalSections != "") @lang('study.all_students_of') ({{@$value->globalClasses->class_name.'->'.@$value->globalSections->section_name}}) @endif @if(@$value->classes != "" && $value->section ==null) @lang('study.all_students_of') ({{@$value->classes->class_name.'->'}} @lang('study.all_sections')) @endif
@if(@$value->globalClasses != "") {{@$value->globalClasses->class_name}} @endif @if($value->globalSections != "") ({{@$value->globalSections->section_name}}) @endif @if($value->section == Null) ( @lang('study.all_sections') ) @endif {{@$value->unSection->section_name}} @php $routeList = [ ''.__('common.view').'', moduleStatusCheck('VideoWatch')== TRUE ? ''.__('study.seen').'' : null, ''.__('common.edit').'', userPermission(91) ? ''.__('common.delete').'':null, userPermission(90) && $value->upload_file != "" ? ' '.__('common.download').' ' :null ] @endphp
@endsection @include('backEnd.partials.data_table_js')