Company Logo

{{ $payslipDetail->company_name }}

{{ $payslipDetail->company_address }} | Email: {{ $payslipDetail->company_email }} | Phone: {{ $payslipDetail->company_phone }}

@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 }}
@php $totalEarning = 0; @endphp @forelse( $earnings as $earning) @php $totalEarning+=$earning['amount']; @endphp @empty @endforelse
Earnings Amount
Basic Salary {{ ($payslipDetail->salary_cycle == 'weekly') ? $payslipDetail->weekly_basic_salary :$payslipDetail->monthly_basic_salary }}
{{ $earning['name'] }} {{ $earning['amount'] }}
Fixed Allowance {{ ($payslipDetail->salary_cycle == 'weekly') ? $payslipDetail->weekly_fixed_allowance : $payslipDetail->monthly_fixed_allowance }}
Gross Earnings {{ $payslipDetail->gross_salary }}
@php $totalDeduction = $payslipDetail->tds; @endphp @forelse( $deductions as $deduction) @php $totalDeduction+=$deduction['amount']; @endphp @empty @endforelse
Deductions Amount
{{ $deduction['name'] }} {{ $deduction['amount'] }}
TDS {{ $payslipDetail->tds }}
Total Deductions {{ $totalDeduction }}
@if($payslipDetail->include_advance_salary ==1) @endif @if($payslipDetail->include_tada ==1) @endif @if($payslipDetail->ot_status == 1) @endif @if($payslipDetail->undertime > 0) @endif
Actual Salary (Total Earning - Total Deductions) {{ $currency.' '. $payslipDetail->gross_salary - $totalDeduction }}
Advance Salary (-) {{ $payslipDetail->advance_salary ?? 0 }}
TADA (+) {{ $payslipDetail->tada ?? 0 }}
Absent Deduction ((grossSalary/ total days) * absent days) {{ $payslipDetail->absent_deduction ?? 0 }}
OverTime Income {{ $payslipDetail->overtime }}
UnderTime Deduction {{ $payslipDetail->undertime }}

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)