@extends('layouts.student') @section('innerTitle',$pageTitle) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ url('/')=>__lang('home'), '#'=>__lang('dashboard') ]]) @endsection @section('content')
@if($homeworkPresent)

{{ __lang('homework') }}

{{ __lang('pending-homework') }}
@endif

{{ setting('label_sessions_courses',__lang('courses-sessions')) }}

{{ __lang('enrolled-courses') }} ({{ $mysessions['total'] }} {{__lang('Items')}})
@if(setting('menu_show_discussions')==1)

{{ __lang('discussions') }}

{{ __lang('latest-topics') }}
    @foreach($forumTopics as $row) @php $user = \App\User::find($row->user_id); @endphp
  • @if($user) avatar @endif
    {{ __lang('view') }}
    {{ $row->title }}
    {{ $row->name}}
    {{ \Illuminate\Support\Carbon::parse($row->forum_created_on)->diffForHumans() }}
  • @endforeach
{{ __lang('view-all') }}
    @foreach($discussions['paginator'] as $row)
  • {{ __lang('view') }}
    {{ $row->subject }}
    @if(\App\Course::find($row->course_id)) {{ \App\Course::find($row->course_id)->name}}
    @endif {{ \App\Discussion::find($row->id)->discussionReplies()->count() }} {{ __lang('replies') }}
    {{ \Illuminate\Support\Carbon::parse($row->created_at)->diffForHumans() }}
  • @endforeach
{{ __lang('view-all') }}
@endif
@if(setting('menu_show_certificates')==1 || setting('menu_show_tests')==1 )
@if(setting('menu_show_certificates')==1)

{{ __lang('certificates') }}

@foreach($certificate['paginator'] as $row)

{{ $row->certificate_name }}
@endforeach
@endif @if(setting('menu_show_tests')==1)

{{ __lang('tests') }}

{{ __lang('your-recent-performance') }}
    @foreach($student->studentTests()->orderBy('id','desc')->limit(5)->get() as $testResult)
  • {{ round($testResult->score) }}%
    {{ __lang('taken-on') }} {{ \Illuminate\Support\Carbon::parse($testResult->created_at)->format('d m Y') }}
  • @endforeach
@endif
@endif
@endsection