@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
(jpg,png,jpeg,pdf,doc,docx,mp4,mp3,txt are allowed for
upload)
@lang('study.upload_content_list')
{{-- @if (isset($uploadContents))
@foreach ($uploadContents as $key => $value)
@lang('common.sl')
@lang('study.content_title')
@lang('common.type')
@lang('common.date')
@lang('study.available_for')
@if (moduleStatusCheck('University'))
@lang('university::un.semester_label')
@else
@lang('study.classSec')
@endif
@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
@if (moduleStatusCheck('University'))
{{@$value->unSection->section_name}}
@endif
@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