{{-- Layout --}} @extends('teacher.layout.layout') {{-- Page Title --}} @section('title','GAS LMS | Upload Homework File') {{-- Breadcrumb section --}} @section('breadcrumb') @include('components._breadcrumb', ['items' => ['Homework' => route('teacher.course.assignment.index',$coffid)]]) @endsection {{-- Content --}} @section('content') @include('components._error')
Back to homework
{{-- attachments --}}
@if (count($attachments) == 0)
Please, note that: if you didn't upload any attachment the homework will be in-active and it could be found in the in-active tab
@endif

Attachments

@forelse ($attachments as $attachment)
@csrf
{{$attachment->file_name}}
{{$attachment->created_at->diffforhumans()}}
@empty

There are no attachments in this HomeWork.

@endforelse
@if ($attachments->count() < 4)

Upload file

Homework details:

{{ $course->acyname.'_'.$course->cname.'_'.$course->lshort_name }}
Course Name
{{ $assignment->title }}
Title
{{ $assignment->points }}
Points
{{ $group->gname }}
Group Name
{{Carbon\Carbon::parse($assignment->start_date)->format('F') }} {{ Carbon\Carbon::parse($assignment->start_date)->format('d, Y') }} / {{date('h:i A', strtotime($assignment->start_time))}}
Start date
{{Carbon\Carbon::parse($assignment->end_date)->format('F') }} {{ Carbon\Carbon::parse($assignment->end_date)->format('d, Y') }} / {{date('h:i A', strtotime($assignment->end_time))}}
End date
@csrf

Upload Files:

Attach files Remove All
Max file size is 100MB and max number of files is 4. Upload Please wait...
@else

Alert

You will not be able to upload more files, remove some of the files then try to upload again.
@endif @endsection @section('js') @endsection