@extends('layouts.parent') @section('title', 'Homework ยท '.config('brand.name')) @section('content')
@include('parent.partials.child-picker') @if (! $child)

Select or add a child to view homework.

@elseif ($items->isEmpty())

No homework has been assigned for {{ $child->first_name }} yet.

@else
@foreach ($items as $item) @php $homework = $item['homework']; @endphp
{{ $homework->lesson?->academicLabel() }}

{{ $homework->title }}

{{ $homework->dueLabel() }}

{{ str_replace('_', ' ', ucfirst($item['status'])) }}

@endforeach
@endif
@endsection