@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @push('prev-next-head')
@endpush @section('content')
{{-- @if ($hasComponents <= 0)
@endif
--}} @if(Auth::user()->hasPermission('/attendance-register-fetch'))
{{ csrf_field() }}
@else
@endif
Filter
@if(isset($months)) @endif @if(isset($years)) @endif
@foreach($dateList as $date) @endforeach @foreach($dateList as $date) @endforeach @foreach($totalEmployees as $employee) @php $isDisabled = ''; if($employee->payrollAttendance && $employee->payrollAttendance->is_lock=="Yes"){ $isDisabled = 'disabled'; } $attendanceData = (new \App\Lib\Services\PayrollProcess)->getPayrollAttendanceByDate($organization, $employee, $fromDateSm, $toDateSm); @endphp @foreach($dateList as $date) @php $attendance = $employee->attendanceSummary->where('attendance_date', $date)->first(); @endphp @if(!$attendance) @continue; @endif @php $bgColor1 = 'bg-light-danger'; $bgColor2 = 'bg-light-danger'; if($attendance->first_half_status == 'P'){ $bgColor1 = 'bg-light-success'; } else if($attendance->first_half_status == 'PO'){ $bgColor1 = 'bg-light-info'; } if($attendance->first_half_status == 'L' || $attendance->on_duty == 4){ $bgColor1 = 'bg-light-warning'; } if($attendance->first_half_status == 'H' || $attendance->on_duty == 3){ $bgColor1 = 'bg-light-primary'; } if($attendance->first_half_status == 'WO' || $attendance->on_duty == 2){ $bgColor1 = 'bg-light-secondary'; } if($attendance->second_half_status == 'P'){ $bgColor2 = 'bg-light-success'; } else if($attendance->second_half_status == 'PO'){ $bgColor2 = 'bg-light-info'; } if($attendance->second_half_status == 'L' || $attendance->on_duty == 4){ $bgColor2 = 'bg-light-warning'; } if($attendance->second_half_status == 'H' || $attendance->on_duty == 3){ $bgColor2 = 'bg-light-primary'; } if($attendance->second_half_status == 'WO' || $attendance->on_duty == 2){ $bgColor2 = 'bg-light-secondary'; } @endphp @endforeach @endforeach
{{$totalEmployees->appends($nextQuery)->links('pagination::bootstrap-4')}}
@endsection @push('footer-script') @endpush