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