@extends('layouts.portal') @section('title', 'Assignments') @section('portal')

Assignments

@forelse ($assignments as $a) @php($s = $subs->get($a->id))

{{ $a->title }} @if($a->is_final_project)Final project@endif

{{ $a->due_at ? 'Due '.$a->due_at->format('j M Y, g:i A') : 'No due date' }}
@if ($s) {{ $s->statusLabel() }}@if(! is_null($s->score)) ยท {{ $s->score }}%@endif @elseif ($a->due_at && $a->due_at->isPast()) Overdue @else Not submitted @endif
@empty

No assignments yet.

@endforelse
@endsection