@extends('backEnd.master') @section('title') @lang('exam.exam_attendance_create') @endsection @section('mainContent') @push('css') @endpush

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'exam_attendance_create_search', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if (moduleStatusCheck('University'))
@includeIf( 'university::common.session_faculty_depart_academic_semester_level', [ 'required' => ['USN', 'UD', 'UA', 'US', 'USL', 'USEC'], 'hide' => ['USUB'], ] )
{{ Form::select('exam_type', ['' => __('exam.select_exam') . '*'], null, ['class' => 'primary_select form-control' . ($errors->has('exam_type') ? ' is-invalid' : ''), 'id' => 'select_exam_typ_subject']) }}
loader
@if ($errors->has('exam_type')) {{ @$errors->first('exam_type') }} @endif
{{ Form::select('subject_id', ['' => __('exam.select_subject') . '*'], null, ['class' => 'primary_select form-control' . ($errors->has('subject_id') ? ' is-invalid' : ''), 'id' => 'select_un_exam_type_subject']) }}
loader
@if ($errors->has('subject_id')) {{ @$errors->first('subject_id') }} @endif
@else
@if ($errors->has('exam')) {{ $errors->first('exam') }} @endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
loader
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@endif
{{ Form::close() }}
@if (isset($students)) {{ Form::open(['class' => 'form-horizontal', 'route' => 'exam-attendance-store', 'method' => 'POST']) }} @if (moduleStatusCheck('University'))

@lang('exam.exam_attendance') | @lang('exam.subject'): {{ $subjectName->subject_name }}

@includeIf('university::exam._university_info')
@if (count($exam_attendance_childs) == 0) @foreach ($students as $record) @endforeach @else @foreach ($exam_attendance_childs as $student) @endforeach @endif
@lang('student.admission_no') @lang('student.student_name') @lang('student.roll_number') @lang('exam.attendance')
{{ @$record->studentDetail->admission_no }} {{ @$record->studentDetail->full_name }} {{ @$record->roll_no ? $record->roll_no : '' }}
{{ @$student->studentInfo != '' ? @$student->studentInfo->admission_no : '' }} {{ @$student->studentInfo != '' ? @$student->studentInfo->full_name : '' }} {{ @$student->studentRecord != '' ? @$student->studentRecord->roll_no : '' }}
attendance_type == 'P' ? 'checked' : '' }}>
attendance_type == 'A' ? 'checked' : '' }}>
@else

@lang('exam.exam_attendance') | @lang('common.class'): {{ $search_info['class_name'] }}, @lang('common.section'): {{ $search_info['section_name'] }}, @lang('common.subject'): {{ $search_info['subject_name'] }}

@if (count($exam_attendance_childs) == 0) @foreach ($students as $record) @endforeach @else @foreach ($exam_attendance_childs as $student) @endforeach @isset($new_students) @foreach ($new_students as $student_record) @endforeach @endisset @endif
@lang('student.admission_no') @lang('student.student_name') @lang('common.class_Sec') @lang('student.roll_number') @lang('exam.attendance')
{{ @$record->studentDetail->admission_no }} {{ @$record->studentDetail->full_name }} {{ @$record->class->class_name }} ({{ @$record->section->section_name }}) {{ @$record->roll_no ? $record->roll_no : '' }}
{{ @$student->studentInfo != '' ? @$student->studentInfo->admission_no : '' }} {{ @$student->studentInfo != '' ? @$student->studentInfo->full_name : '' }} {{ @$student->studentRecord->class->class_name }} ({{ @$student->studentRecord->section->section_name }}) {{ @$student->studentRecord != '' ? @$student->studentRecord->roll_no : '' }}
attendance_type == 'P' ? 'checked' : '' }}>
attendance_type == 'A' ? 'checked' : '' }}>
{{ @$student_record->studentDetail->admission_no }} {{ @$student_record->studentDetail->full_name }} {{ @$student_record->class->class_name }} ({{ @$student_record->section->section_name }}) {{ @$student_record->roll_no }}
{{ Form::close() }}
@endif {{ Form::close() }} @endif
@endsection