@extends('layouts.staff_dashboard') @section('title', 'Assignments') @section('content')
@if(session('success') || session('error') || $errors->any())
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
Please fix the following errors:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@endif

Allocated Assignments

@forelse($assignments as $row)
@csrf

{{ $row->assname }}

{{ $row->coursename }}
{{ $row->module_name }}
Marks: {{ $row->marks }}
Due: {{ $row->submiteddate ? \Carbon\Carbon::parse($row->submiteddate)->format('M d, Y') : 'No deadline' }}
@empty

No Assignments Allocated

No assignments have been allocated to students.

@endforelse
@endsection