@extends('admin.layouts.dashboard')
@section('title', 'Daily Attendance')
@section('content')
@php
$type = ($parameter ?? '2') == '1' ? 'Executive' : 'Member';
$dt = $daily_attendance_report['select_dt'] ?? date('d-m-Y');
// Note: the late/in-time status column was disabled in the original
// report, so every check-in shows simply as "Present". Unchanged here.
$present = $daily_attendance_report['today_attendance'];
$presentIds = collect($present)->pluck('id')->all();
$absent = collect($daily_attendance_report['today_emp_dept'])
->reject(fn ($person) => in_array($person->id, $presentIds));
@endphp
@if (count($present) === 0)
@else
| SL |
Name |
In-time |
Out-time |
Status |
Remark |
@foreach ($present as $i => $att)
| {{ $i + 1 }} |
{{ ucwords($att->fullname) }} |
{{ date('h:i:s a', strtotime($att->intime)) }} |
{{ date('h:i:s a', strtotime($att->outtime)) }} |
Present |
{{ $att->remarks }} |
@endforeach
@endif
@if ($absent->isEmpty())
@else
| SL |
Name |
Status |
Remark |
@foreach ($absent as $person)
| {{ $loop->iteration }} |
{{ ucwords($person->fullname) }} |
Absent |
|
@endforeach
@endif
@endsection