@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $navGroups = \App\Support\Navigation\TeacherNav::groups('assignments'); $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp
Current & Upcoming ({{ $currentAssignments->count() }}) Past ({{ $pastAssignments->count() }})
@forelse($currentAssignments as $assignment) @empty @endforelse
SL Title Subject / Section Due Submissions Status Attachment
{{ $loop->iteration }} {{ $assignment->title }} {{ $assignment->courseOffering->subject->name }} · {{ $assignment->courseOffering->section->label() }} {{ $local($assignment->due_at)->format('M j, g:i A') }} {{ $assignment->submissions->whereIn('status', ['submitted', 'graded', 'late'])->count() }} / {{ $assignment->submissions->count() }} {{ ucfirst($assignment->status) }} @if(! empty($assignment->attachments))
@foreach($assignment->attachments as $i => $path) @php $isImage = (bool) preg_match('/\.(png|jpe?g|webp)$/i', $path); @endphp @if($isImage) @else View{{ count($assignment->attachments) > 1 ? ' '.($i + 1) : '' }} @endif @endforeach
@else — @endif
Grade
No current or upcoming assignments.
@forelse($pastAssignments as $assignment) @empty @endforelse
SL Title Subject / Section Due Submissions Status Attachment
{{ $loop->iteration }} {{ $assignment->title }} {{ $assignment->courseOffering->subject->name }} · {{ $assignment->courseOffering->section->label() }} {{ $local($assignment->due_at)->format('M j, g:i A') }} {{ $assignment->submissions->whereIn('status', ['submitted', 'graded', 'late'])->count() }} / {{ $assignment->submissions->count() }} {{ ucfirst($assignment->status) }} @if(! empty($assignment->attachments))
@foreach($assignment->attachments as $i => $path) @php $isImage = (bool) preg_match('/\.(png|jpe?g|webp)$/i', $path); @endphp @if($isImage) @else View{{ count($assignment->attachments) > 1 ? ' '.($i + 1) : '' }} @endif @endforeach
@else — @endif
Grade
No past assignments.
@csrf

Images or PDFs, up to 10MB each, 5 files max.