@extends('../layout/' . $layout) @section('subhead') Atarud MIS - Student Attendance Monthly Report @endsection @section('subcontent')

Student Attendance Monthly Report

@csrf @method('get')
Select Program Select Semester Select Section Select Course Action
@if(isset($students))

Student Monthly Attendance Report

Program: {{$data['program']->title}}     Semester: {{$data['semester']->name}}     Section: {{$data['section']->name}}     Date: {{$data['date']}}

@foreach($students as $row) @php $invoice = App\Models\Invoice::where('student_id', $row->student_id) ->where('section_id',$row->course_id) ->first(); $student = App\Models\Student::where('id', $row->student_id)->first(); $invoice_id = $invoice != null ? $invoice->id: ''; @endphp
# ID Student Name Invoice_id 1 Present Absent Leave Trady
{{$loop->index}} {{$row->student_id}} {{$student != null ? $student->name : ''}} {{$invoice_id}}