@extends(getTemplate() .'.panel.layouts.panel_layout') @push('styles_top') @endpush @section('content')

{{ $webinar->title }} | {{ $assignment->title }}

{{ $courseAssignmentsCount }} {{ trans('update.course_assignments') }}
{{ $pendingReviewCount }} {{ trans('update.pending_review') }}
{{ $passedCount }} {{ trans('quiz.passed') }}
{{ $failedCount }} {{ trans('quiz.failed') }}

{{ trans('update.filter_assignments') }}

{{ trans('update.your_course_assignments') }}

@if($histories->count() > 0)
@foreach($histories as $history) @endforeach
{{ trans('quiz.student') }} {{ trans('panel.purchase_date') }} {{ trans('update.first_submission') }} {{ trans('update.last_submission') }} {{ trans('update.attempts') }} {{ trans('quiz.grade') }} {{ trans('public.status') }}
{{ $history->student->full_name }} {{ $history->student->email }}
{{ !empty($history->purchase_date) ? dateTimeFormat($history->purchase_date, 'j M Y') : '-' }} {{ !empty($history->first_submission) ? dateTimeFormat($history->first_submission, 'j M Y | H:i') : '-' }} {{ !empty($history->last_submission) ? dateTimeFormat($history->last_submission, 'j M Y | H:i') : '-' }} {{ !empty($assignment->attempts) ? "{$history->usedAttemptsCount}/{$assignment->attempts}" : '-' }} {{ (!empty($history->grade)) ? $history->grade : '-' }} @if(empty($history) or ($history->status == \App\Models\WebinarAssignmentHistory::$notSubmitted)) {{ trans('update.assignment_history_status_not_submitted') }} @else @switch($history->status) @case(\App\Models\WebinarAssignmentHistory::$passed) {{ trans('quiz.passed') }} @break @case(\App\Models\WebinarAssignmentHistory::$pending) {{ trans('public.pending') }} @break @case(\App\Models\WebinarAssignmentHistory::$notPassed) {{ trans('quiz.failed') }} @break @endswitch @endif
{{ $histories->appends(request()->input())->links('vendor.pagination.panel') }}
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'meeting.png', 'title' => trans('update.my_assignments_no_result'), 'hint' => nl2br(trans('update.my_assignments_no_result_hint')), ]) @endif
@endsection @push('scripts_bottom') @endpush