@extends('layouts.app') @section('title','Student Attendance List') @section('content')
@foreach ($studentattendancs as $item) @endforeach
Action # Class Session Group Year Total Student Total Present Total Absent Date Teacher
{{ $loop->iteration }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ $item->attendancedetail->count() }} {{ $item->attendancedetail->where('attendance','Present')->count() }} {{ $item->attendancedetail->where('attendance','Absent')->count() }} {{ Date('d-M-Y',strtotime($item->date)) }} {{ Date('h:i A',strtotime($item->created_at)) }} {{ optional(optional($item->teacher)->teacheruser)->name }}
@endsection @include('admin.components.tosterjs') @include('admin.components.delete') @include('admin.components.common')