@extends('layouts.student') @section('pageTitle',$course->name.': '.$classRow->name) @section('innerTitle',$course->name) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>$customCrumbs]) @endsection @section('content')
@if(!empty($classRow->picture)) @else @endif
{{ $classRow->name }}
@php if($previous): @endphp {{ __lang('previous') }} @php endif; @endphp @php if($next): @endphp {{ __lang('start-class') }} @php endif; @endphp

{!! $classRow->introduction !!}

@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 'i': echo __lang('image'); break; case 'q': echo __lang('quiz'); break; case 'l': echo __lang('video'); break; } @endphp
@php $count++; @endphp @php endforeach; @endphp
@php if($downloads->count() > 0): @endphp {{ __lang('download-all') }} @php endif; @endphp @php foreach($downloads as $download): @endphp @php endforeach; @endphp
{{ __lang('file') }}
{{ basename($download->path) }} @php if ($fileTable->getTotalForDownload($classRow->id)> 0): @endphp {{ __lang('download') }} @php else: @endphp {{ __lang('no-files-available') }} @php endif; @endphp
@php if(!empty($sessionRow->enable_discussion)): @endphp
@csrf

{{ __lang('ask-a-question') }}

{{ __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 {{ __lang('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 endif; @endphp
@endsection