@if($assignmentDeadline) {{ is_bool($assignmentDeadline) ? trans('update.unlimited') : trans('update.n_day', ['day' => ceil($assignmentDeadline)]) }} @else {{ trans('panel.expired') }} @endif {{ trans('update.deadline') }}
@if(!empty($assignment->attempts)) {{ $submissionTimes }}/{{ $assignment->attempts }} @else {{ trans('update.unlimited') }} @endif {{ trans('update.submission_times') }}
{{ $assignmentHistory->grade ?? 0 }}/{{ $assignment->grade }} {{ trans('quiz.your_grade') }}
{{ $assignment->pass_grade }} {{ trans('update.min_grade') }}
{{ trans('update.assignment_history_status_'.$assignmentHistory->status) }} {{ trans('public.status') }}
{!! $assignment->description !!}
@if(!empty($assignment->attachments) and count($assignment->attachments))

{{ trans('public.attachments') }}

@foreach($assignment->attachments as $attachment) @endforeach
@endif

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

@if( $user->id != $assignment->creator_id and ( $assignmentHistory->status == \App\Models\WebinarAssignmentHistory::$passed or $assignmentHistory->status == \App\Models\WebinarAssignmentHistory::$notPassed or !$assignmentDeadline or ( !$checkHasAttempts and !empty($assignment->attempts) and $submissionTimes >= $assignment->attempts ) ) )
@if($assignmentHistory->status == \App\Models\WebinarAssignmentHistory::$passed) @elseif($assignmentHistory->status == \App\Models\WebinarAssignmentHistory::$notPassed) @else @endif
@if($assignmentHistory->status == \App\Models\WebinarAssignmentHistory::$passed)

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

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

@elseif($assignmentHistory->status == \App\Models\WebinarAssignmentHistory::$notPassed)

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

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

@elseif(!$assignmentDeadline)

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

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

@else

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

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

@endif
@else

@if($user->id == $assignment->creator_id) {{ trans('update.reply_to_the_conversation') }} @else {{ trans('update.send_assignment') }} @endif

{{ csrf_field() }} @if($user->id == $assignment->creator_id) @endif
@if($user->id == $assignment->creator_id)

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

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

@endif @endif
@if(!empty($assignmentHistory->messages) and count($assignmentHistory->messages)) @foreach($assignmentHistory->messages as $message)
{{ $message->sender->full_name }}

{{ $message->sender->full_name }}

{{ dateTimeFormat($message->created_at, 'j M Y | H:i') }}
{!! $message->message !!}
@if(!empty($message->file_path)) @endif
@endforeach @else

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

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

@endif