@extends('backend.report.layouts.master', ['headerData' => $headerData,'printIt' => 1]) @section('extraStyle') @endsection @section('reportBody')
Filters: {{implode(' II ',$filters)}}
@foreach($monthDates as $date => $value) @endforeach @php $dayWisePresent = []; $dayWiseAbsent = []; //init 0 values foreach($monthDates as $date => $value){ $dayWisePresent[$date] = 0; $dayWiseAbsent[$date] = 0; } @endphp @foreach($students as $student) @php $tPresent = 0; $tlPresent = 0; $tabsent = 0; @endphp @foreach($monthDates as $date => $value) @php $status = ''; $color = ''; if(isset($attendanceData[$student->id][$date])) { if($attendanceData[$student->id][$date]['present'] == 1){ $status = 'P'; $color = 'green'; $tPresent++; if($attendanceData[$student->id][$date]['inLate'] == 1){ $tlPresent++; } $dayWisePresent[$date] += 1; } else{ if (!$value['weekend']) { $status = 'A'; $tabsent++; $color = 'red'; $dayWiseAbsent[$date] += 1; } } } if($value['weekend']){ $status .= 'W'; $color = 'weekend'; } @endphp @endforeach @endforeach {!! ReportHelper::generateStudentMonthlyAttendanceSumTableRows($dayWisePresent,$dayWiseAbsent) !!}
SL Name Roll Regi No. Day of Month P L.P A T.P
{{$value['day']}}
{{$loop->iteration}} {{$student->info->name}} {{$student->roll_no}} {{$student->regi_no}}{{$status}} {{($tPresent-$tlPresent)}} {{$tlPresent}} {{$tabsent}} {{$tPresent}}
Printed By: {{auth()->user()->name}}
Class Teacher
@if(AppHelper::getInstituteCategory() == 'college') Principal @else Headmaster @endif
@endsection