@extends('layouts.student') @section('pageTitle',$pageTitle) @section('innerTitle',$sessionRow->name) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>$customCrumbs]) @endsection @section('content')
@if(!empty($sessionRow->picture)) @else @endif
{{ __lang('introduction') }}

{!! $sessionRow->introduction !!}

{{ __lang('start-course') }}
@php if($totalClasses>0): @endphp @php $count=1; foreach($classes as $row): @endphp
{{ $count.'. '.$row->name }}
@php foreach($lectureTable->getPaginatedRecords(false,$row->lesson_id) as $lecture): @endphp @php endforeach; @endphp
{{ __lang('lectures') }} {{ __lang('attendance') }}
{{ $lecture->title }} @php if($sessionLogTable->hasAttendance($studentId,$sessionId,$lecture->id)): @endphp {{ __lang('completed-on') }} {{ showDate('d/M/Y',$sessionLogTable->getAttendance($studentId,$sessionId,$lecture->id)->created_at) }} @php else: @endphp {{ __lang('pending') }} @php endif; @endphp {{ __lang('view-lecture') }}
@php $count++; @endphp @php endforeach; @endphp @php endif; @endphp
@foreach($downloads as $download) @php endforeach; @endphp
{{ __lang('name') }} {{ __lang('files') }}
{{ $download->name }} {{ $fileTable->getTotalForDownload($download->download_id) }} @if ($fileTable->getTotalForDownload($download->download_id)> 0) {{ __lang('view-files') }} {{ __lang('download-all') }} @else {{ __lang('no-files-available') }} @endif

{{ $percentage }}%

{{ __lang('classes-attended') }}

{{ __lang('here-are-classes') }}

@php foreach($attendanceRecords as $attendance): @endphp @php endforeach; @endphp
{{ __lang('class') }} {{ __lang('date') }}
{{ $attendance->name }} {{ showDate('d/M/Y',$attendance->attendance_date) }}

{{ __lang('pending-classes') }}

{{ __lang('classes-yet-to-take') }}

@php if($totalClasses>0): @endphp @php foreach($classes as $class): @endphp @php if(!$attendanceTable->hasAttendance($studentId,$class->lesson_id,$sessionId)): @endphp @php endif; @endphp @php endforeach; @endphp @php endif; @endphp
{{ __lang('class') }}
{{ $class->name }} @php if($class->lesson_date > time()): @endphp {{ __lang('starts-on') }} {{ showDate('d/M/Y',$class->lesson_date) }} @php else: @endphp {{ __lang('start-class') }} @php endif; @endphp
@php if(!empty($sessionRow->enable_discussion)): @endphp

{{ __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 else: @endphp {{ __lang('instruct-chat-unavailable') }} @php endif; @endphp
@php if(!empty($sessionRow->enable_forum)): @endphp {!! $forumTopics !!} @php else: @endphp {{ __lang('student-forum-unavailable') }} @php endif; @endphp
@endsection