@extends('dashboard_connect.dash_master') @section('pagescontents')

Monthly Attendance - Paper-wise

@if(Session::has('status'))
@endif @if(Session::has('wrong'))
@endif
@csrf
Please select session.
Please select semester name.
Please select course type.
Please select attendance month.
Please select attendance type.
Please select paper name.
@if(!empty($sessionid) && !empty($semesterid) && !empty($coutypeid) && !empty($attdmonth) && !empty($attdtype) && !empty($subjectid))

Students Attendance Data : {{ getcodebypaper($subjectid) }} - {{ $coutypeid }} - {{ $newattdtype }} - @if($attdmonth == "All") All Months @else {{ getmonthmaster($attdmonth) }} @endif

@php $intcount = 1; $lectperc = 0; $lectheld = 0; $lectnewheld = 0; $lectnewattd = 0; @endphp @foreach($monthattddata as $keyone => $itemone) @php $stucollrollno = ""; $stucollrollno = $itemone->collrollno; $stuexamrollno = $itemone->examrollno; $lectheld = $itemone->totlectheld; $lectattd = $itemone->totlectattd; $coursename = getstucourse($sessionid, $itemone->subjectid, $itemone->studentid); $coursenewid = getstucourseid($sessionid, $semesterid, $itemone->studentid); $weightage = getweightage($sessionid, $coursenewid, $itemone->studentid, "VALUES"); $weighton = getweightage($sessionid, $coursenewid, $itemone->studentid, "VALON"); $weighttpe = getweightage($sessionid, $coursenewid, $itemone->studentid, "VATYPE"); if($weightage>0){ if($weighton == "LectHeld"){ if($weighttpe == "Percentage"){ $lectnewheld = (($lectheld * $weightage) / 100); $lectheld = $lectheld - $lectnewheld; if($lectattd > $lectheld){ $lectheld = $lectattd; }else{ $lectheld = $lectheld; } if($lectheld>0 && $lectattd>0){ $lectperc = Round(($lectattd / $lectheld) * 100, 2); }else{ $lectperc = 0; } }elseif($weighttpe == "Numbers"){ $lectheld = $lectheld - $weightage; if($lectattd > $lectheld){ $lectheld = $lectattd; }else{ $lectheld = $lectheld; } if($lectheld>0 && $lectattd>0){ $lectperc = Round(($lectattd / $lectheld) * 100, 2); }else{ $lectperc = 0; } } }elseif($weighton == "LectAttd"){ if($weighttpe == "Percentage"){ $lectnewattd = (($lectattd * $weightage) / 100); $lectattd = $lectattd - $lectnewattd; if($lectattd > $lectheld){ $lectheld = $lectattd; }else{ $lectheld = $lectheld; } if($lectheld>0 && $lectattd>0){ $lectperc = Round(($lectattd / $lectheld) * 100, 2); }else{ $lectperc = 0; } }elseif($weighttpe == "Numbers"){ $lectattd = $lectattd - $weighttpe; if($lectattd > $lectheld){ $lectheld = $lectattd; }else{ $lectheld = $lectheld; } if($lectheld>0 && $lectattd>0){ $lectperc = Round(($lectattd / $lectheld) * 100, 2); }else{ $lectperc = 0; } } } }else{ if($lectattd > $lectheld){ $lectheld = $lectattd; }else{ $lectheld = $lectheld; } if($lectheld>0 && $lectattd>0){ $lectperc = Round(($lectattd / $lectheld) * 100, 2); }else{ $lectperc = 0; } } @endphp @php $intcount++; @endphp @endforeach
S. No. Course Name College Roll No. Exam. Roll No. Student's Name Leture Delivered Lecture Attended Percentage(%)
{{ $intcount }} {{ $coursename }} {{ $stucollrollno }} {{ $stuexamrollno }} {{ $itemone->name }} {{ $itemone->lname }} {{ Round($lectheld,2) }} {{ Round($lectattd,2) }} {{ Round($lectperc,2) }}
@endif @if(!empty($sessionid) && !empty($semesterid) && !empty($coutypeid) && !empty($attdmonth) && !empty($attdtype) && !empty($subjectid)) @endif @endsection