@php $itemHistory = $item->getAssignmentHistoryByStudentId(request()->get('student', $user->id)); $checkSequenceContent = $item->checkSequenceContent(); $sequenceContentHasError = (!empty($checkSequenceContent) and (!empty($checkSequenceContent['all_passed_items_error']) or !empty($checkSequenceContent['access_after_day_error']))); $assignmentUrl = "{$course->getLearningPageUrl()}?type=assignment&item={$item->id}"; $assignmentUrlTarget = "_self"; if ($course->isOwner($user->id)) { $assignmentUrl = "/panel/assignments/{$item->id}/students"; $assignmentUrlTarget = "_blank"; } elseif ($user->isAdmin() or $course->isPartnerTeacher($user->id)) { $assignmentUrl = "#!"; } @endphp
{{ $item->title }} @if(empty($itemHistory) or ($itemHistory->status == \App\Models\WebinarAssignmentHistory::$notSubmitted)) {{ trans('update.assignment_history_status_not_submitted') }} @else @switch($itemHistory->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

{!! truncate($item->description, 150) !!}

@php $itemDeadline = $item->getDeadlineTimestamp(); @endphp
{{ trans('update.deadline') }}: @if(is_bool($itemDeadline)) @if(!$itemDeadline) {{ trans('panel.expired') }} @else {{ trans('update.unlimited') }} @endif @elseif(!empty($itemDeadline)) {{ dateTimeFormat($itemDeadline, 'j M Y') }} @else {{ trans('update.unlimited') }} @endif