@if($course->certificate)
@php
$hasCertificateItem = true;
@endphp
{{ trans('update.course_certificate') }}
@if(!empty($courseCertificate))
{{ trans("public.date") }}: {{ dateTimeFormat($courseCertificate->created_at, 'j F Y') }}
@else
{{ trans("update.not_achieve") }}
@endif
@endif
@if(!empty($course->quizzes) and count($course->quizzes))
@foreach($course->quizzes as $courseQuiz)
@if($courseQuiz->certificate)
@php
$hasCertificateItem = true;
@endphp
{{ $courseQuiz->title }}
{{ $courseQuiz->pass_mark }}/{{ $courseQuiz->quizQuestions->sum('grade') }}
@if(!empty($courseQuiz->result))
{{ dateTimeFormat($courseQuiz->result->created_at, 'j M Y H:i') }}
@endif
@endif
@endforeach
@endif
@if(!$hasCertificateItem)
{{ trans('update.learning_page_empty_certificate_title') }}
{{ trans('update.learning_page_empty_certificate_hint') }}
@endif