Choose a subject
Selecting a subject opens related assignments and notices for this course.
@if ($subjects->isEmpty())
No subjects found for this course.
@else
@foreach ($subjects as $subject)
@endforeach
@endif
Assignments and notices
Showing all subjects
@php($assignmentsForCourse = $assignmentsByCourseSubject->get($course->id, collect()))
@if($assignmentsForCourse->isNotEmpty())
@foreach($assignmentsForCourse as $subjectId => $assignmentsList)
@foreach($assignmentsList as $assignment)
@php($submission = $studentAssignmentSubmissions->get($assignment->id))
{{ $assignment->title }}
Due: {{ \Illuminate\Support\Carbon::parse($assignment->due_date)->format('d M Y') }}
{{ $submission ? 'Submitted' : 'Not submitted' }}
{{ $assignment->description }}
@if ($assignment->attachment_path)
View assignment attachment
@endif
@if($submission)
@if($submission->submission_text)
Your note: {{ $submission->submission_text }}
@endif
@if($submission->file_path)
Download uploaded file
@endif
@endif
@endforeach
@endforeach
@endif
@if ($notices->isEmpty())
No notices posted for this course.
@else
@foreach ($notices as $notice)
{{ $notice->title }}
{{ ucfirst($notice->type) }}
@if ($notice->type === 'record' && $notice->record_date)
ยท Record date: {{ \Illuminate\Support\Carbon::parse($notice->record_date)->format('d M Y') }}
@endif
@if ($notice->subject_name)
Subject: {{ $notice->subject_name }}
@endif
{{ $notice->priority }}
@if ($notice->type === 'link' && filter_var($notice->content, FILTER_VALIDATE_URL))
{{ $notice->content }}
@else
{{ $notice->content }}
@endif
@if ($notice->study_files)
View notice attachment
@endif
@endforeach
@endif