@php if (!function_exists('complianceRegisterFormatTime')) { function complianceRegisterFormatTime($time) { return $time && $time != '00:00:00' ? date('H:i', strtotime($time)) : '-'; } } if (!function_exists('complianceRegisterFormatHours')) { function complianceRegisterFormatHours($time) { return $time && $time != '00:00:00' ? substr($time, 0, 5) : '-'; } } $orgAddressParts = []; if ($organization->address) { foreach (['line_1', 'line_2', 'line_3', 'postal_code'] as $addressField) { if (!empty($organization->address->{$addressField})) { $orgAddressParts[] = $organization->address->{$addressField}; } } } @endphp

{{ $organization->name }}

@if (!empty($orgAddressParts))

{{ implode(', ', $orgAddressParts) }}

@endif
Attendance Register for the month of {{ $monthYearLabel }}
1. In Time    2. Out Time    3. Total Working Hours    4. Attendance Status
@forelse ($employeeSummary as $employee) @php $atSummary = $employee->registerAttSummary; $woHo = $employee->woHoCounts; $leaveCounts = $employee->registerLeaveCounts; @endphp
PayCode: {{ $employee->employee_code }} Cardno: {{ $employee->card_no ?: $employee->employee_code }} Name: {{ $employee->name }} Shift: {{ @$employee->shift->name }} Desig: {{ @$employee->designation->name }} Paid Days: {{ @$employee->vwAttendanceSummary->total_pay_days }} Present Days: {{ @$employee->vwAttendanceSummary->total_present }}
@foreach ($dateArr as $date) @endforeach @foreach ($dateArr as $date) @endforeach @foreach ($dateArr as $date) @php $a = $atSummary[$date] ?? null; $hideTime = $a && ($a->on_duty == 2 || ($a->on_duty == 3 && $a->is_week_off == 0)); @endphp @endforeach @foreach ($dateArr as $date) @php $a = $atSummary[$date] ?? null; $hideTime = $a && ($a->on_duty == 2 || ($a->on_duty == 3 && $a->is_week_off == 0)); $outTime = $a ? ($a->fact_out_time ?: $a->out_time) : null; @endphp @endforeach @foreach ($dateArr as $date) @php $a = $atSummary[$date] ?? null; $hideTime = $a && ($a->on_duty == 2 || ($a->on_duty == 3 && $a->is_week_off == 0)); @endphp @endforeach @foreach ($dateArr as $date) @php $a = $atSummary[$date] ?? null; $statusLabel = '-'; if ($a) { if ($a->on_duty == 2) { $statusLabel = 'WO'; } elseif ($a->on_duty == 3 && $a->is_week_off == 0) { $statusLabel = 'H'; } else { $statusLabel = $a->status ?: '-'; } } @endphp @endforeach
 {{ date('d', strtotime($date)) }}
 {{ date('D', strtotime($date)) }}
1{{ $a && !$hideTime ? complianceRegisterFormatTime($a->in_time) : '-' }}
2{{ $a && !$hideTime ? complianceRegisterFormatTime($outTime) : '-' }}
3{{ $a && !$hideTime ? complianceRegisterFormatHours($a->fact_working_hour) : '-' }}
4{{ $statusLabel }}
WO: {{ @$woHo['total_week_off'] ?: 0 }} HD: {{ @$woHo['total_holiday'] ?: 0 }} EL: {{ @$leaveCounts['EL'] ?: 0 }} CL: {{ @$leaveCounts['CL'] ?: 0 }} SL: {{ @$leaveCounts['SL'] ?: 0 }} OL: {{ @$leaveCounts['OL'] ?: 0 }}
@empty

No employees found for the selected filters.

@endforelse