{{-- Layout --}} @extends('teacher.layout.layout') {{-- Page Title --}} @section('title','GAS LMS | Assign Students to Homework') {{-- Breadcrumb section --}} @section('breadcrumb') @include('components._breadcrumb', ['items' => ['Homework' => route('teacher.course.assignment.index',$coffid)]]) @endsection {{-- Content --}} @section('content') @include('components._error')
Assigned Students There are {{$enrolled_students}} students enrolled in this course There are {{count($assignment_students->where('is_allowed',1))}} students assigned to this homework
@method('PUT') @csrf @foreach ($assignment_students as $student) @php $count=0; $found=0; $now=now(); $start=new \Carbon\Carbon(date('Y-m-d H:i:s', strtotime( "$student->start_date $student->start_time"))); $end=new \Carbon\Carbon(date('Y-m-d H:i:s', strtotime( "$student->end_date $student->end_time"))); if ($now >= $start && $now <= $end){ $found=1; } @endphp @endforeach
name enrollment method start_date end_date abscents count actions
@if (!$student->is_allowed)
@endif
{{$student->first_name.' '.$student->middle_name.' '.$student->last_name}} {{$student->fees_by_lesson ? 'By Lesson':'By Course'}} {{ Carbon\Carbon::parse($student->start_date)->format('F') }} {{ Carbon\Carbon::parse($student->start_date)->format('d, Y') }} / ({{date('h:i A', strtotime($student->start_time))}}) {{ Carbon\Carbon::parse($student->end_date)->format('F') }} {{ Carbon\Carbon::parse($student->end_date)->format('d, Y') }} / ({{date('h:i A', strtotime($student->end_time))}})

{{$student->attendance_count}}

@if ($student->attendance_count < 2) Active @else In-Active @endif
id}} data-start-date={{$student->start_date}} data-start-time={{$student->start_time}} data-end-date={{$student->end_date}} data-end-time={{$student->end_time}} data-attempts={{$student->attempts_remainder}} data-allow-submit-after-end-time={{$student->allow_submit_after_end_time}} data-found-student-in-assignment={{$found}} > @if ($student->is_allowed) @endif
{{-- edit start and end date modal --}} @endsection @section('js') {{-- delete student --}} {{-- Submit forms --}} {{-- confirm alert --}} {{-- on check checkboxes --}} @endsection