| {{ $i++ }} |
{{ $employee->device_person_id }} |
{{ $employee->employee_code }} |
{{ $employee->name }} |
@if(!$time)
{{ $employee->hod->name ?? '' }} |
@endif
{{ $employee->workstation->name ?? '' }} |
{{ $employee->department->name ?? '' }} |
{{ $employee->subDepartment->name ?? '' }} |
{{ $employee->employee_type }} |
{{ $employee->date_of_joining ? date('d-m-Y', strtotime($employee->date_of_joining)) : '' }} |
{{ $employee->designation->name ?? '' }} |
{{ $employee->aadhar_number }} |
@if(!$time)
{{ $attendanceData['present'] ?? 0 }} |
{{ $attendanceData['absent'] ?? 0 }} |
{{ $attendanceData['leaves'] ?? 0 }} |
@endif
{{ $employee->status }} |
@foreach($dateList as $date)
@php
$attendance = $employee->attendanceSummary->where('attendance_date', $date)->first();
if($attendance){
$attendanceColors = [
'present' => '#28C76F',
'absent' => '#F8D7DA',
'week-off' => '#FFF2CC',
'holiday' => '#E7E6E6',
'leave' => '#D9EAF7',
];
$boxColor = $attendanceColors[$attendance->attendance_type] ?? '';
if (round($attendance->day_count, 2) == 0.50 && $attendance->attendance_type =='present') {
$boxColor = '#FCE4D6';
}
$entryModeColors = [
App\Helpers\ConstantHelper::REGULARIZED => '#E2F0D9',
App\Helpers\ConstantHelper::MODIFIED => '#DDEBF7',
];
$boxColor = $entryModeColors[$attendance->entry_mode] ?? $boxColor;
}
@endphp
@if(!$attendance)
- |
- |
@if($time)
- | - | - | - | - | - | - |
@endif
@else
{{ $time ? date('H:i', strtotime($attendance->in_time)) : $attendance->first_half_status }}
|
{{ $time ? date('H:i', strtotime($attendance->out_time)) : $attendance->second_half_status }}
|
@if($time)
{{ $attendance->working_time ?? '-' }} |
{{ $attendance->working_time ?? '-' }} |
{{ $attendance->overtime ?? '-' }} |
{{ $attendance->overtime ?? '-' }} |
{{ $attendance->actual_overtime ?? '-' }} |
{{ $attendance->actual_overtime ?? '-' }} |
{{ $attendance->status ?? '-' }} |
@endif
@php
$totalPaidDays += $attendance->day_count ?? 0;
@endphp
@endif
@endforeach
{{ $totalPaidDays }} |
{{ $totalPresent }} |
{{ $totalOT }} |
@endforeach