@extends('dashboard_connect.dash_master')
@section('pagescontents')
@if(!empty($subjectid) && !empty($sessionid))
S. No. |
Course Name |
College Roll No. |
Student's Name |
Leture Delivered |
Lecture Attended |
Percentage(%) |
@php
$intcount = 1;
$lectperc = 0;
$lectheld = 0;
$lectnewheld = 0;
$lectnewattd = 0;
@endphp
@foreach($monthattddata as $keyone => $itemone)
@php
$lectheld = $itemone->totlectheld;
$lectattd = $itemone->totlectattd;
$coursename = getstucourse($sessionid, $subjectid, $itemone->studentid);
$coursenewid = getstucourseid($sessionid, $subjectid, $itemone->studentid);
$weightage = getweightage($sessionid, $coursenewid, $itemone->studentid);
if($weightage>0){
$lectnewheld = (($lectheld * $weightage) / 100);
$lectheld = $lectheld - $lectnewheld;
if($lectheld>0 && $lectattd>0){
$lectperc = Round(($lectattd / $lectheld) * 100, 2);
}else{
$lectperc = 0;
}
}else{
if($lectheld>0 && $lectattd>0){
$lectperc = Round(($lectattd / $lectheld) * 100, 2);
}else{
$lectperc = 0;
}
}
@endphp
{{ $intcount }} |
{{ $coursename }} |
{{ $itemone->username }} |
{{ $itemone->name }} {{ $itemone->lname }} |
{{ Round($lectheld,2) }} |
{{ Round($lectattd,2) }} |
{{ Round($lectperc,2) }} |
@php
$intcount++;
@endphp
@endforeach
@endif
@endsection