{{-- ==================== Attendance Tab Start ==================== --}}
{{-- ===== Collapsible Filter Section ===== --}}
Filter
{{-- ===== Summary Section ===== --}}
Summary
Total Days
{{ $totalDays }}
Present
{{ $presentCount }} @if($totalDays > 0) ({{ $presentPercentage }}%) @else (N/A) @endif
Absent
{{ $absentCount }} @if($totalDays > 0) ({{ $absentPercentage }}%) @else (N/A) @endif
{{-- ===== Attendance Table ===== --}}
@forelse($attendances as $index => $attendance) @empty @endforelse
Sl Date Status Comments Attachment Taken By Updated At
@if(is_object($attendances) && method_exists($attendances, 'firstItem')) {{ $attendances->firstItem() + $index }} @else {{ $index + 1 }} @endif {{ \Carbon\Carbon::parse($attendance->attendance_date)->format('d F, l, Y') }} @if($attendance->status == 'present') Present @else Absent @endif
{{ $attendance->remark ?? '(No comment)' }}
@forelse($attendance->attachments as $attachment) @empty No file @endforelse
{{ $attendance->taken_by_display_name ?? '-' }} {{ $attendance->updated_at ? \Carbon\Carbon::parse($attendance->updated_at)->format('h:i A d-m-Y') : '-' }}
No attendance records found
{{-- ===== Pagination ===== --}} @if(is_object($attendances) && method_exists($attendances, 'hasPages') && $attendances->hasPages())
Showing {{ $attendances->firstItem() }} to {{ $attendances->lastItem() }} of {{ $attendances->total() }} results
{{ $attendances->links('pagination::bootstrap-4') }}
@endif
{{-- ==================== Attendance Tab End ==================== --}}