@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
@foreach ($dateList as $date) @endforeach @foreach ($dateList as $date) @endforeach @foreach ($totalEmployees as $key => $employee) @php $payrollProcess = new \App\Lib\Services\PayrollProcess(); $attendanceData = $payrollProcess->getPayrollAttendanceData( $organization, $employee, $month, $year, ); $atSummary = $employee->getAttendanceSummaryList($month, $year); $daysActuallyWorked = 0; $lateDays = 0; $weekHolidays = 0; $totalMonthDays = date('t', strtotime($year . '-' . $month . '-01')); @endphp @foreach ($dateList as $date) @if (!isset($atSummary[$date])) @continue; @endif @php $attendance = isset($atSummary[$date]) ? $atSummary[$date] : null; @endphp @php // dd($attendance); // if($attendance->shift_id){ // dd('12'); // } @endphp @php $lateDays += $attendance->late_comer; $leavesData = $payrollProcess->getMonthlyLeaves( $employee, $month, $year, ); @endphp @endforeach @endforeach
Yearly Regd No Serial No Name & Residensial Address Employee Code Father's Name or Husband's Name in case of Married Woman Certifying Surgeons Certificate No Designation Nature of Work{{ date('d (D)', strtotime($date)) }}Days Actually Worked Weekly Holiday Entitled Accident or Sick Leave Leave with Wages Late Leave without Pay Total Days Worked Total Days Absent Remarks
H1 H2
- @if (isset($_GET['page']) && $_GET['page'] > 0) {{ ($_GET['page'] - 1) * 50 + $loop->iteration }} @else {{ $loop->iteration }} @endif {{ $employee->name }}
{{ $employee->geo_address }}
{{ $employee->employee_code }} {{ @$employee->father_name ?: '-' }} - {{ @$employee->designation->name ?: '-' }} - -- -- @if ($attendance->first_half_status == 'L' || $attendance->on_duty == 4) L @elseif($attendance->first_half_status == 'H' || $attendance->on_duty == 3) H @elseif($attendance->first_half_status == 'WO' || $attendance->on_duty == 2) WO @elseif($attendance->first_half_status == 'P') P @elseif($attendance->first_half_status == 'PO') PO @elseif($attendance->first_half_status == 'A') A @else {{@$attendance->first_half_status }} @endif @if ($attendance->second_half_status == 'L' || $attendance->on_duty == 4) L @elseif($attendance->second_half_status == 'H' || $attendance->on_duty == 3) H @elseif($attendance->second_half_status == 'WO' || $attendance->on_duty == 2) WO @elseif($attendance->second_half_status == 'P') P @elseif($attendance->second_half_status == 'PO') PO @elseif($attendance->second_half_status == 'A') A @else {{@$attendance->second_half_status }} @endif {{ round(@$attendanceData['present'] ?: 0, 1) }} {{ round(@$attendanceData['weekOffs'] + @$attendanceData['holidays'] ?: 0, 1) }} - {{ round(@$leavesData['totalLeavesWPay'], 1) }} {{ round($lateDays, 1) }} {{ round(@$leavesData['totalLeavesWOPay'], 1) }} {{ round(@$attendanceData['totalPaidDays'] ?: 0, 1) }} {{ round(@$attendanceData['absent'] ?: 0, 1) }} -
{{ $totalEmployees->appends($request->except('page'))->links('pagination::bootstrap-4') }}
@endsection @push('footer-script') @endpush