@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'); $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp Back to Homework
@forelse($students as $student) @php $submission = $submissions->get($student->id); @endphp
{{ mb_substr($student->fullName(), 0, 1) }}

{{ $student->fullName() }}

{{ $submission ? 'Submitted' : 'Not Submitted' }} @if($submission?->seen_at) Seen @endif @if($submission?->mark !== null) {{ $submission->mark }} / 100 @endif
{{ $local($submission?->submitted_at)?->format('M j, Y g:ia') ?? '—' }} @if($submission) @endif
@if($submission)
@if($submission->text_response)

{{ $submission->text_response }}

@endif @if($submission->file_path)
@if($submission->fileIsImage()) Submitted file @else View attached file @endif
@endif
@if(! $submission->seen_at)
@csrf
@else

Seen {{ $local($submission->seen_at)->format('M j, Y g:ia') }}

@endif
@csrf
@endif
@empty
No active students in this section.
@endforelse