@if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif
| S/N | Title | Subject | Class | Due | File | @if(Qs::userIsTeamSA())Teacher | @endifAction |
@forelse($assignments as $a)
| {{ $loop->iteration }} |
{{ $a->title }} |
{{ optional($a->subject)->name }} |
{{ optional($a->my_class)->name }} {{ $a->section ? '('.$a->section->name.')' : '' }} |
{{ $a->due_date ? date('jS M, Y', strtotime($a->due_date)) : '—' }} |
@if($a->attachment)@endif |
@if(Qs::userIsTeamSA()){{ optional($a->teacher)->name }} | @endif
|
@empty
| No assignments yet. |
@endforelse