@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
Filter
@if (!empty($contractorName))
Contractor : {{ $contractorName }}
@endif @if (!empty($locationName))
Location : {{ $locationName }}
@endif @if (!empty($employeeType))
Employee Type : {{ $employeeType }}
@endif @if (!empty($status))
Month Day's Status : {{ $status }}
@endif @if (!empty($departmentName))
DEPARTMENT : {{ $departmentName }}
@endif @if (!empty($contractorName))

ATTENDANCE REGISTER OF {{ $contractorName }} FOR THE MONTH OF {{ date('F - Y', strtotime('01-' . $month . '-' . $year)) }}

@else

ATTENDANCE REGISTER OF {{ $organization->name }} FOR THE MONTH OF {{ date('F - Y', strtotime('01-' . $month . '-' . $year)) }}

@endif
@if (count($empShifts))
@foreach ($empShifts as $shift)
{{ $shift->name }}
({{ date('h:i A', strtotime($shift->start_time)) }} - {{ date('h:i A', strtotime($shift->end_time)) }}) | Marked as
@endforeach
@endif
@if(!$showColumns) @endif @if($showColumns) @endif @foreach ($dateList as $date) @endforeach @if(!$showColumns) @endif @foreach ($leaveTypes as $leaveType) @endforeach @if($showColumns) @endif @foreach ($totalEmployees as $key => $employee) @php $payrollProcess = new \App\Lib\Services\PayrollProcess(); $attendanceData = $payrollProcess->getPayrollAttendanceData( $organization, $employee, $month, $year, ); $atSummary = $employee->getAttendanceSummaryList($month, $year); $leavesData = $payrollProcess->getMonthlyLeaves($employee, $month, $year); $present = @$attendanceData['present']; $absent = @$attendanceData['absent']; $weekOff = @$attendanceData['weekOffs']; $hd = @$attendanceData['halfDays']; $co = @$attendanceData['compensations']; $ph = @$attendanceData['holidays']; $payDay = @$attendanceData['totalPaidDays']; $scoDays = @$attendanceData['scoDays']; $totalMonthlyHrs = @$attendanceData['payableHours']; $totalMonthlyOvertime = @$attendanceData['totalOvertime']; $totalPaidDay = (@$payDay + @$co + @$scoDays) - (@$ph + @$hd); $pow = @$attendanceData['pow']; $poh = @$attendanceData['poh']; $payableHours = @$attendanceData['payableHours']; @endphp @if(!$showColumns) @endif @if($showColumns) @endif @foreach ($dateList as $index => $date) @php $attendance = $atSummary[$date] ?? null; $status = $attendance->status ?? '--'; @endphp @endforeach @if(!$showColumns) @endif @foreach ($leaveTypes as $leaveType) @php $leaveDetail = $employee->leaves->flatMap->leaveDetail->firstWhere( 'leave_type_id', $leaveType->id, ) ?? null; if ($leaveDetail) { $totalLeaveCounts[$leaveType->id] = ($totalLeaveCounts[$leaveType->id] ?? 0) + $leaveDetail->total_leave_count; } @endphp @endforeach @if($showColumns) @endif @endforeach
Sr No. Employee Code Employee Name Gender DOB DOJ DepartmentActivity WorkstationCompany Date Of Exit Status Designation{{ date('d (D)', strtotime($date)) }}Total Work Days Present Days Absent Days Week Off Half DayCF SCO DaysPH{{ $leaveType->name }}Holiday POW Paid Days Total Monthly Hrs Total Monthly OT Hrs POH Location Reporting Officer
@if (isset($_GET['page']) && $_GET['page'] > 0) {{ ($_GET['page'] - 1) * 50 + $loop->iteration }} @else {{ $loop->iteration }} @endif {{ $employee->employee_code }} {{ $employee->name }} {{ $employee->gender ? ucfirst($employee->gender) : '-' }} {{ $employee->dob ? date('d-F-Y', strtotime($employee->dob)) : '-' }} {{ $employee->date_of_joining ? date('d-F-Y', strtotime($employee->date_of_joining)) : '-' }} {{ $employee->department->name ?? '-' }}{{ $employee->activity ?? '-' }} {{ $employee->workstation->name ?? '-' }}{{ $employee->contractor? $employee->contractor->name : $group}} {{ $employee->date_of_leaving ?? '-' }} {{ $employee->status ?? '-' }} {{ $employee->designation->name ?? '-' }} {{ $status }} {{ $totalPaidDay }} {{ $present }} {{ $absent }} {{ $weekOff }} {{ $hd }}{{ $co }} {{ $scoDays }}{{ $ph }}{{ $leaveDetail->total_leave_count ?? 0 }}{{ $ph }} {{ $pow }} {{ $payDay }} {{ $payableHours }} {{ $totalMonthlyOvertime }} {{ $poh }} {{ $employee->organization->name ?? '-' }} {{ @$employee->hod->name}}
{{ $totalEmployees->appends($request->except('page'))->links('pagination::bootstrap-4') }}
@endsection @push('footer-script') @endpush