| # |
Action |
Employee Name |
Attendance Date |
Sign In |
Sign Out |
Working Hours |
@if(count($attendanceList)>0)
@foreach($attendanceList as $key => $arr)
@php
$signIN = new DateTime($arr->signIN);
$signOut = $arr->signOut ? new DateTime($arr->signOut) : null;
if ($signOut) {
$interval = $signIN->diff($signOut);
$timeDifference = $interval->format('%h hours %i minutes');
} else {
$timeDifference = '-';
}
@endphp
| {{++$key}} |
|
{{getUserNameById('users', 'userID',$arr->userID, 'displayName')}} |
{{df($arr->attendanceDate)}} |
{{$arr->signIN}} |
{{$arr->signOut ?? '-'}} |
{{ $timeDifference }} |
@endforeach
@else
| No Record Found |
@endif
| # |
Action |
Employee Name |
Attendance Date |
Sign In |
Sign Out |
Working Hours |
{{ $attendanceList->appends($queryParameters)->links('pagination::bootstrap-5') }}