@extends('app-new') @push('head-script') @endpush @push('content-header')
@endpush @section('content')| 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 | @foreach ($dateList as $date){{ date('d (D)', strtotime($date)) }} | @endforeachDays 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 | @endforeach|||||||||||||||||||
| - | @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 ?: '-' }} | - | @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@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 | @php // dd($attendance); // if($attendance->shift_id){ // dd('12'); // } @endphp@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 | @php $lateDays += $attendance->late_comer; $leavesData = $payrollProcess->getMonthlyLeaves( $employee, $month, $year, ); @endphp @endforeach{{ 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) }} | - |