@php $intcount = 1; $lectperc = 0; $lectheld = 0; $lectnewheld = 0; $lectnewattd = 0; @endphp @foreach($monthattddata as $keyone => $itemone) @php $stucollrollno = ""; $stucollrollno = getstudata($itemone->studentid, "COLLROLL"); $lectheld = $itemone->totlectheld; $lectattd = $itemone->totlectattd; $coursename = getstucourse($sessionid, $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
KIRORI MAL COLLEGE (UNIVERSITY OF DELHI)
 
Attendance Master Report :: {{ $sessionname }}
{{ $coursenamedisp }} {{ getpapername($subjectid) }} [{{ $attdtype }}]
 
S. No. Course Name College Roll No. Student's Name Leture Delivered Lecture Attended Percentage(%)
{{ $intcount }} {{ $coursename }} {{ $stucollrollno }} {{ $itemone->name }} {{ $itemone->lname }} {{ Round($lectheld,2) }} {{ Round($lectattd,2) }} {{ Round($lectperc,2) }}