@extends('../student_layout/' . $layout)
@section('subhead')
Atarud MIS - {{ Auth::guard('student')->user()->name }} Student Attendance Class Base Report
@endsection
@section('subcontent')
{{ Auth::guard('student')->user()->name }} Student Attendance Class Base Report
{{--
--}}
@if(isset($data['courses']))
Student Monthly Attendance Report
# |
Program |
Courses |
Absent |
@foreach($data['courses'] as $row)
@php
$absent = App\Models\Attendance::where('course_id',$row->id)
->where('student_id',Auth::guard('student')->user()->id)
->where('status',0)
->whereBetween('date', [ date('Y-m-d'),date('Y-m-1')])
->count();
if($absent <= 5) continue;
$program = App\Models\Program::where('id',$row->program_id)->first();
$programName = $program != null ? $program->title : '';
@endphp
{{++$loop->index}} |
{{$programName}} |
{{$row->title}} |
{{$absent}} |
@endforeach
@endif
@endsection
@section('script')
@endsection