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

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal','route' => 'subject-attendance-search', 'method' => 'GET', 'enctype' => 'multipart/form-data', 'id' => 'search_studentA']) }}
@if(moduleStatusCheck('University')) @includeIf('university::common.session_faculty_depart_academic_semester_level',['required'=>['USN','UD', 'UA', 'US','USL','USUB']])
@if ($errors->has('attendance_date')) {{ $errors->first('attendance_date') }} @endif
@else
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
loader
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
@if ($errors->has('attendance_date')) {{ $errors->first('attendance_date') }} @endif
@endif
{{ Form::close() }}
@if(isset($students))

@lang('student.subject_wise_attendance')

@if(moduleStatusCheck('University'))
@lang('university::un.faculty_department'): {{ isset($unFaculty) ? $unFaculty->name .'('. (isset($unDepartment) ? $unDepartment->name:'').')':''}}
@lang('university::un.semester(label)'): {{ isset($unSemester) ? $unSemester->name .'('. (isset($unSemesterLabel) ? $unSemesterLabel->name : '') .')' :''}}
@lang('common.subject'): {{ isset($unSubject) ? $unSubject->subject_name :''}}
@else
@lang('common.class'): {{$search_info['class_name']}}
@lang('common.section'): {{$search_info['section_name']}}
@lang('common.subject'): {{$search_info['subject_name']}}
@endif
@lang('common.date'): {{dateConvert($input['attendance_date'])}}
@if($attendance_type != "" && $attendance_type == "H")
@lang('student.attendance_already_submitted_as_holiday')
@elseif($attendance_type != "" && $attendance_type != "H")
@lang('student.attendance_already_submitted')
@endif
{{-- HoliDay Start --}}
@if($attendance_type != "H")
@csrf @if(moduleStatusCheck('University')) @endif
@else
@csrf @if(moduleStatusCheck('University')) @endif
@endif
{{-- HoliDay End --}} {{ Form::open(['class' => 'form-horizontal', 'route' => 'subject-attendance-store', 'method' => 'POST'])}}
@php $count=1; @endphp @foreach($students as $student) {{-- student means student record data--}} @endforeach
@lang('common.sl') @lang('student.admission_no') @lang('student.student_name') @lang('student.roll_number') @lang('student.attendance') @lang('common.note')
{{$count++}} {{$student->studentDetail->admission_no}} @if(moduleStatusCheck('University')) @endif {{$student->studentDetail->first_name.' '.$student->studentDetail->last_name}} {{$student->roll_no}}
studentDetail->DateSubjectWiseAttendances !=null ? ($student->studentDetail->DateSubjectWiseAttendances->attendance_type == "P" ? 'checked' :'') : 'checked' }}>
studentDetail->DateSubjectWiseAttendances !=null ? ($student->studentDetail->DateSubjectWiseAttendances->attendance_type == "L" ? 'checked' :''):''}}>
studentDetail->DateSubjectWiseAttendances !=null ? ($student->studentDetail->DateSubjectWiseAttendances->attendance_type == "A" ? 'checked' :''):''}}>
studentDetail->DateSubjectWiseAttendances !=null ? ($student->studentDetail->DateSubjectWiseAttendances->attendance_type == "F" ? 'checked' :'') : ''}}>
{{ Form::close() }}
@endif
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js')