@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))
{!! clean(Session::get('alert-' . $msg)) !!}
@endif @endforeach @if(Session::has('flash_message'))
{!! clean(Session::get('flash_message')) !!}
@endif @if(isset($flash_message))
{!! clean($flash_message) !!}
@endif
@if($downloads->count() > 0) @endif
@php foreach($downloads as $download): @endphp @php endforeach; @endphp
{{ __lang('File') }}
{{ basename($download->path) }} @php if ($fileTable->getTotalForDownload($lecture->id)> 0): @endphp {{ __lang('download') }} @php else: @endphp {{ __lang('no-files') }} @php endif; @endphp
@if($course->enable_discussion==1)
@php if(!empty($course->enable_discussion)): @endphp
{{ __lang('ask-a-question-lecture') }}

{{ __lang('your-questions') }}

@php foreach($discussions as $row): @endphp @php endforeach; @endphp
{{ __lang('subject') }} {{ __lang('created-on') }} {{ __lang('recipients') }} {{ __lang('replied') }}
{{ $row->subject }} {{ showDate('d/M/Y',$row->created_at) }} @php if($row->admin==1): @endphp Administrators, @php endif; @endphp @php foreach($accountTable->getDiscussionAccounts($row->id) as $row2): @endphp {{ $row2->name.' '.$row2->last_name }}, @php endforeach; @endphp {{ boolToString($row->replied) }} {{ __lang('view') }}
@php else: @endphp {{ __lang('instruct-chat-unavailable') }} @php endif; @endphp
@php if(!empty($course->enable_forum)): @endphp {!! $forumTopics !!} @php else: @endphp {{ __lang('student-forum-unavailable') }} @php endif; @endphp
@endif
@php $count=1; foreach($lectures as $row): @endphp
{{ $count.'. '.$row->title }}
@php foreach($lecturePageTable->getPaginatedRecords(false,$row->id) as $page): @endphp @php endforeach; @endphp
{{ __lang('content') }} {{ __lang('type') }}
{{ $page->title }} @php switch($page->type){ case 't': echo __lang('text'); break; case 'v': echo __lang('video'); break; case 'c': echo __lang('html-code'); break; case 'l': echo __lang('video'); break; case 'i': echo __lang('image'); break; case 'q': echo __lang('quiz'); break; case 'z': echo __lang('zoom-meeting'); break; } @endphp
@php if($lecture->id!=$row->id): @endphp @php endif; @endphp
@php $count++; @endphp @php endforeach; @endphp