Team Attendance

Manage today's shift workforce.

@if($dailyControl->workforce_check_status === 'Completed')
Assigned {{ $dailyControl->workerAttendances->count() }}
Working {{ $dailyControl->workerAttendances->whereIn('status', ['Present'])->count() }}
Done {{ $dailyControl->workerAttendances->where('status', 'CheckedOut')->count() }}
Absent {{ $dailyControl->workerAttendances->where('status', 'Absent')->count() }}
@endif
@if($dailyControl->workforce_check_status !== 'Completed')
Morning Check-in Required You must complete the initial attendance check before managing operations.
@csrf
@forelse($workers as $index => $worker) @php $attendance = $dailyControl->workerAttendances->where('cleaning_worker_id', $worker->id)->first(); $isPresent = $attendance ? true : false; $arrivalTime = $attendance && $attendance->arrival_time ? \Carbon\Carbon::parse($attendance->arrival_time)->format('H:i') : ''; @endphp @empty @endforelse
Worker Present Arrival Time
{{ $worker->first_name }} {{ $worker->last_name }}
ID: {{ $worker->id_number }}
No workers assigned to this branch.

If you are completing the check with 0 workers present, you must provide a reason.

@else
@forelse($dailyControl->workerAttendances as $attendance) @empty @endforelse
Worker Status Check-in Check-out Action
{{ $attendance->cleaningWorker->first_name }} {{ $attendance->cleaningWorker->last_name }}
ID: {{ $attendance->cleaningWorker->id_number }}
@if($attendance->status === 'Expected') Expected @elseif($attendance->status === 'Present') Present @elseif($attendance->status === 'CheckedOut') Checked Out @elseif($attendance->status === 'Absent') Absent @endif {{ $attendance->check_in_at ? $attendance->check_in_at->format('H:i') : '--:--' }} {{ $attendance->check_out_at ? $attendance->check_out_at->format('H:i') : '--:--' }} @if($attendance->status === 'Present' && !in_array($dailyControl->status, ['Submitted', 'Approved']))
@csrf
@elseif($attendance->status === 'CheckedOut') Done @elseif($attendance->status === 'Absent') No Action @endif
No workers found.
@endif