{{-- Layout --}} @extends('teacher.layout.layout') {{-- Page Title --}} @section('title','GAS LMS | Assign Students') {{-- Breadcrumb section --}} @section('breadcrumb') @include('components._breadcrumb', ['items' => ['Grade Item' => route('teacher.course.quiz.index',$coffid)]]) @endsection {{-- Content --}} @section('content') @include('components._error')
Assigned Students There are {{$enrolled_students}} students enrolled in this course There are {{count($quiz_students->where('is_allowed',1))}} students assigned to this Quiz
@method('PUT') @csrf {{-- --}} {{-- --}} @foreach ($quiz_students as $student) {{-- @php $count=0; $found=0; $now=now(); $start=new \Carbon\Carbon(date('Y-m-d H:i:s', strtotime( "$student->quiz_start_date $student->quiz_start_time"))); $end=new \Carbon\Carbon(date('Y-m-d H:i:s', strtotime( "$student->quiz_end_date $student->quiz_end_time"))); if ($now >= $start && $now <= $end){ $found=1; } @endphp --}} {{-- --}} @endforeach
nameenrollment methodstart_date end_date abscents countactions
@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->attempt_start_date)->format('F') }} {{ Carbon\Carbon::parse($student->attempt_start_date)->format('d, Y') }} / ({{date('h:i A', strtotime($student->attempt_start_time))}}) {{ Carbon\Carbon::parse($student->attempt_end_date)->format('F') }} {{ Carbon\Carbon::parse($student->attempt_end_date)->format('d, Y') }} / ({{date('h:i A', strtotime($student->attempt_end_time))}})

{{$student->attendance_count}}

@if ($student->attendance_count < 2) Active @else In-Active @endif
{{-- id}} data-start-date={{$student->attempt_start_date}} data-start-time={{$student->attempt_start_time}} data-end-date={{$student->attempt_end_date}} data-end-time={{$student->attempt_end_time}} data-attempts={{$student->attempts_remainder}} data-allow-submit-after-end-time={{$student->allow_submit_after_end_time}} data-found-student-in-quiz={{$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