@if($payrollData['payslipData']->salary_cycle == 'monthly')
Payslip for the Month of {{ \App\Helpers\AppHelper::getMonthYear($payrollData['payslipData']->salary_from) }}
@else
Payslip from {{ \App\Helpers\AttendanceHelper::payslipDate($payrollData['payslipData']->salary_from) }} to {{ \App\Helpers\AttendanceHelper::payslipDate($payrollData['payslipData']->salary_to) }}
@endif
Employee ID: | {{ $payrollData['payslipData']->employee_code }} |
Name: | {{ $payrollData['payslipData']->employee_name }} |
Salary Slip: | XYZ-001 |
Department: | {{ $payrollData['payslipData']->department }} |
Designation: | {{ $payrollData['payslipData']->designation }} |
Joining Date: | {{ $payrollData['payslipData']->joining_date }} |
Total Days |
{{ $payrollData['payslipData']->total_days }} |
Present |
{{ $payrollData['payslipData']->present_days }} |
Absent |
{{ $payrollData['payslipData']->absent_days }} |
Leave |
{{ $payrollData['payslipData']->leave_days }} |
Holidays |
{{ $payrollData['payslipData']->holidays }} |
Weekend |
{{ $payrollData['payslipData']->weekends }} |
Earnings |
Amount |
Basic Salary |
{{ ($payrollData['payslipData']->salary_cycle == 'weekly') ? $payrollData['payslipData']->weekly_basic_salary :$payrollData['payslipData']->monthly_basic_salary }} |
@php $totalEarning = 0; @endphp
@forelse( $payrollData['earnings'] as $earning)
{{ $earning['name'] }} |
{{ $earning['amount'] }} |
@php $totalEarning+=$earning['amount']; @endphp
@empty
@endforelse
Fixed Allowance |
{{ ($payrollData['payslipData']->salary_cycle == 'weekly') ? $payrollData['payslipData']->weekly_fixed_allowance : $payrollData['payslipData']->monthly_fixed_allowance }} |
Gross Earnings |
{{ $payrollData['payslipData']->gross_salary }} |
Deductions |
Amount |
@php $totalDeduction = $payrollData['payslipData']->tds; @endphp
@forelse( $payrollData['deductions'] as $deduction)
{{ $deduction['name'] }} |
{{ $deduction['amount'] }} |
@php $totalDeduction+=$deduction['amount']; @endphp
@empty
@endforelse
TDS |
{{ $payrollData['payslipData']->tds }} |
Total Deductions |
{{ $totalDeduction }} |
Actual Salary (Total Earning - Total Deductions) |
{{ $currency.' '. $payrollData['payslipData']->gross_salary - $totalDeduction }} |
@if($payrollData['payslipData']->include_advance_salary ==1)
Advance Salary (-) |
{{ $payrollData['payslipData']->advance_salary ?? 0 }} |
@endif
@if($payrollData['payslipData']->include_tada ==1)
TADA (+) |
{{ $payrollData['payslipData']->tada ?? 0 }} |
@endif
Absent Deduction ((grossSalary/ total days) * absent days) |
{{-- @php--}}
{{-- $deductionFee = ($payrollData['payslipData']->gross_salary / $payrollData['payslipData']->total_days) * $payrollData['payslipData']->absent_days;--}}
{{-- @endphp--}}
{{ $payrollData['payslipData']->absent_deduction ?? 0 }}
|
@if(isset($payrollData['payslipData']->ot_status) && $payrollData['payslipData']->ot_status == 1)
OverTime Income |
{{ $payrollData['payslipData']->overtime }}
|
@endif
@if(isset($underTimeSetting) && $underTimeSetting->is_active == 1)
UnderTime Deduction |
{{ $payrollData['payslipData']->undertime }}
|
@endif
Net Salary: {{ $currency.' '. $payrollData['payslipData']->net_salary }}
({{ $numberToWords->get($payrollData['payslipData']->net_salary) }})
Net Salary = (Actual Salary - Advance Salary + TADA)