@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
@csrf
@if (count($present) === 0) @else
@foreach ($present as $i => $att) @endforeach
SL Name In-time Out-time Status Remark
{{ $i + 1 }} {{ ucwords($att->fullname) }} {{ date('h:i:s a', strtotime($att->intime)) }} {{ date('h:i:s a', strtotime($att->outtime)) }} Present {{ $att->remarks }}
@endif
@if ($absent->isEmpty()) @else
@foreach ($absent as $person) @endforeach
SL Name Status Remark
{{ $loop->iteration }} {{ ucwords($person->fullname) }} Absent
@endif
@endsection