@extends('layouts.app') @section('content')
| Batch | Total Classes | Present | Absent | Late | Excused | Attendance % | Status |
|---|---|---|---|---|---|---|---|
| {{ $batch->name }} | {{ $batch->total_classes }} | {{ $batch->present_count }} ({{ $batch->present_percentage }}%) | {{ $batch->absent_count }} ({{ $batch->absent_percentage }}%) | {{ $batch->late_count }} ({{ $batch->late_percentage }}%) | {{ $batch->excused_count }} ({{ $batch->excused_percentage }}%) |
|
@if($batch->attendance_percentage >= 90) Excellent @elseif($batch->attendance_percentage >= 75) Good @elseif($batch->attendance_percentage >= 50) Average @else Poor @endif |
| # | Date | Day | Batch | Subject | Time | Status | Remark | Marked At |
|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $session->session_date->format('Y-m-d') ?? 'N/A' }} | {{ $session->session_date->format('l') }} | @if($session->class && $session->class->batch) {{ $session->class->batch->name ?? 'N/A' }} @else N/A @endif |
@if($session->class && $session->class->subject)
{{ $session->class->subject->title ?? $session->class->subject->name ?? 'N/A' }}
Code: {{ $session->class->subject->code ?? 'N/A' }} @else N/A @endif |
@if($session->start_time && $session->end_time) {{ \Carbon\Carbon::parse($session->start_time)->format('h:i A') }} - {{ \Carbon\Carbon::parse($session->end_time)->format('h:i A') }} @else Full Day @endif | {{ ucfirst($entry->status) }} | @if($entry->remark) {{ Str::limit($entry->remark, 30) }} @else - @endif | {{ $entry->created_at->format('Y-m-d h:i A') }} |
No attendance records found@if($startDate || $endDate)Try changing your filter criteria Clear Filters @endif |
||||||||