@extends('backEnd.master') @section('title') @lang('study.upload_content_list') @endsection @section('mainContent')
@if (isset($editData)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'update-upload-content', @$editData->id, 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @else @if (userPermission('save-upload-content')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'save-upload-content', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif

@if (isset($editData)) @lang('study.edit_upload_content') @else @lang('study.upload_content') @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
{{ $errors->first('upload_date') }}
@if ($errors->has('source_url')) {{ $errors->first('source_url') }} @endif
(jpg,png,jpeg,pdf,doc,docx,mp4,mp3,txt are allowed for upload)
@php $tooltip = ''; if (userPermission('save-upload-content')) { @$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('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 (moduleStatusCheck('University')) @if (@$value->available_for_admin == 1) @lang('study.all_admins') @else @lang('study.all_students_of') {{ @$value->semesterLabel->name . '(' . @$value->undepartment->name . ')' }} @endif @else @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->classes != '' && $value->sections != '') @lang('study.all_students_of') ({{@$value->classes->class_name.'->'.@$value->sections->section_name}}) @endif @if (@$value->classes != '' && $value->section == null) @lang('study.all_students_of') ({{@$value->classes->class_name.'->'}} @lang('study.all_sections')) @endif @endif
@if (moduleStatusCheck('University')) @if (!@$value->available_for_admin == 1) {{ $value->semesterLabel->name }} -({{@$value->unAcademic->name}}) @endif @else @if (@$value->classes != '') {{@$value->classes->class_name}} @endif @if ($value->sections != '') ({{@$value->sections->section_name}}) @endif @if ($value->section == null) ( @lang('study.all_sections') ) @endif @endif {{@$value->unSection->section_name}} @php $routeList = [ ''.__('common.view').'', moduleStatusCheck('VideoWatch')== TRUE ? ''.__('study.seen').'' : null, userPermission("upload-content-edit") ? ''.__('common.edit').'':null, userPermission("delete-upload-content") ? ''.__('common.delete').'':null, userPermission("download-content-document") && $value->upload_file != "" ? ' '.__('common.download').' ' :null ] @endphp
{{-- delete content modal start --}} {{-- delete content modal end --}} @endsection @include('backEnd.partials.date_picker_css_js') @include('backEnd.partials.data_table_js') @include('backEnd.partials.server_side_datatable') @push('script') @endpush