@extends('layouts.teacher') @section('title', $title.' · Homework · '.config('brand.name')) @section('content')
Create homework @if (session('status'))
{{ session('status') }}
@endif
@foreach ([ 'assigned' => 'Assigned', 'drafts' => 'Drafts', 'overdue' => 'Overdue', ] as $key => $label) {{ $label }} @endforeach Awaiting marking
@if ($items->isEmpty())

@if ($section === 'drafts') No drafts yet. Create homework and save it as a draft until you are ready to assign. @else No homework in this list yet. Create homework and assign it to enrolled students. @endif

@else
@foreach ($items as $homework) @endforeach
Homework Subject Due Students Status
{{ $homework->title }} {{ $homework->lesson?->academicLabel() }} {{ $homework->dueLabel() }} @if ($homework->assignees->isNotEmpty()) {{ $homework->assignees->count() }} selected @else All enrolled @endif {{ $homework->assigned_status?->label() ?? 'Assigned' }} View
@endif
@endsection