@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('homework'); @endphp
@if($sections->isEmpty())
You aren't assigned to any section yet — homework can only be posted for sections you teach or are the class teacher of.
@endif @if($classes->isNotEmpty())
All grades @foreach($classes as $class) {{ $class->name }} @endforeach
@endif
@forelse($homework as $item)
{{ $loop->iteration }}.

{{ $item->title }}

{{ $item->isOnline() ? 'Online' : 'Exercise Book' }}

{{ $item->schoolClass->name }} - {{ $item->section->name }} @if($item->subject) · {{ $item->subject->name }} @endif · Posted {{ $item->created_at->format('M j, Y') }} @if($item->due_date) · Due {{ $item->due_date->format('M j, Y') }} @endif

{{ $item->description }}

@if($item->attachment_path)
@if($item->attachmentIsImage()) Attachment @else View attached PDF @endif
@endif
@if($item->isOnline()) View Submissions @endif
@empty
No homework posted yet.
@endforelse
@csrf

No subjects are set up for this class yet.

Attachment preview
@foreach($homework as $item)
@csrf @method('PUT')

No subjects are set up for this class yet.

New attachment preview
@endforeach