@extends('layouts.app') @section('title', 'Attendance - ' . ($class->subject->title ?? 'Class')) @section('content')
| Teacher: | {{ $teacher->user->name }} |
|---|---|
| Batch: | {{ $class->batch->name }} ({{ $class->batch->code ?? 'No Code' }}) |
| Room: | {{ $class->room->name ?? 'Not assigned' }} {{ $class->room->number ? '(' . $class->room->number . ')' : '' }} |
| Subject: | {{ $class->subject->title }} ({{ $class->subject->code ?? 'No Code' }}) |
|---|---|
| Semester: | {{ $class->semester }} |
| Weekly Hours: | {{ $class->weekly_hours }} hours |
| Date | Total Students | Present | Absent | Actions |
|---|---|---|---|---|
|
{{ \Carbon\Carbon::parse($session->session_date)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($session->session_date)->format('l') }} |
{{ $totalCount }} |
{{ $presentCount }}
@if($totalCount > 0)
{{ number_format(($presentCount/$totalCount)*100, 1) }}% @endif |
{{ $absentCount }}
@if($totalCount > 0)
{{ number_format(($absentCount/$totalCount)*100, 1) }}% @endif |
Take attendance to see the history here.