| Employee Information | |||
|---|---|---|---|
| Employee Name: | {{ $payrollEntry->employee->name }} | Employee ID: | {{ $employeeData->employee_id ?? $payrollEntry->employee->id }} |
| Email: | {{ $payrollEntry->employee->email }} | Pay Period: | {{ $payrollEntry->payrollRun->pay_period_start->format('d M Y') }} - {{ $payrollEntry->payrollRun->pay_period_end->format('d M Y') }} |
| Basic Salary: | {{ formatCurrency($payrollEntry->basic_salary) }} | Generated On: | {{ now()->format('d M Y') }} |
| Attendance Summary | |||||
|---|---|---|---|---|---|
| Working Days: {{ $payrollEntry->working_days }} | Present: {{ $payrollEntry->present_days }} | Paid Leave: {{ $payrollEntry->paid_leave_days }} | Unpaid Leave: {{ $payrollEntry->unpaid_leave_days }} (Unpaid Leaves + Half Days + Absent) |
Half Days: {{ $payrollEntry->half_days }} | Absent: {{ $payrollEntry->absent_days }} |
| Overtime Hours: {{ number_format($payrollEntry->overtime_hours, 1) }}h | |||||
| Deduction Calculation Details | |||
|---|---|---|---|
| Type | Days/Details | Rate | Deduction Amount |
| Per Day Salary | Basic Salary / Working Days | {{ formatCurrency($payrollEntry->basic_salary) }} / {{ $payrollEntry->working_days }} | {{ formatCurrency($perDaySalary) }} |
| Total Unpaid Leave Deduction | Absent + Half Days + Unpaid Leave | Total Deduction | {{ formatCurrency($unpaidLeaveDeduction) }} |
| Salary Details | |||
|---|---|---|---|
| Earnings | Amount | Deductions | Amount |
| {{ $earningsKeys[$i] ?? '' }} | {{ isset($earningsKeys[$i]) ? formatCurrency($earnings[$earningsKeys[$i]]) : '' }} | {{ $deductionsKeys[$i] ?? '' }} | {{ isset($deductionsKeys[$i]) ? formatCurrency($deductions[$deductionsKeys[$i]]) : '' }} |
| Total Earnings | {{ formatCurrency($totalEarnings) }} | Total Deductions | {{ formatCurrency($totalDeductions) }} |
| NET SALARY (Take Home) | {{ formatCurrency($payrollEntry->net_pay) }} | ||