@php use App\Models\warehouse;use Carbon\Carbon; @endphp PaySlip Of {{Carbon::create(null,$payslip->salary_month,null)->format('F')}}
@if(get_setting('system_logo_white') != null) {{ get_setting('site_name') }} @endif {{ !empty($staff->warehouse)?$staff->warehouse->address:'' }}

Payslip for {{Carbon::create(null,$payslip->salary_month,null)->format('F')}} , {{$payslip->salary_year}}


@if(\App\Services\PayrollIncomeTaxService::enabled() && (int)get_setting('payroll_tax_show_tin') === 1 && !empty($salary->tin_number)) @endif
Employee Name {{!empty($staff->user)?$staff->user->name:'-'}} Employee Code {{!empty($staff->user)?$staff->user->id:'-'}}
Designation {{!empty($staff->designation)?$staff->designation->name:'-'}} Join Date {{date('d-m-Y',strtotime($staff->joing_date))}}
{{ __('TIN') }} {{ $salary->tin_number }}
Branch/Warehouse {{!empty($staff->warehouse)?$staff->warehouse->name:'-'}} Department {{!empty($staff->department)?$staff->department->name:'-'}}


@if((float)($payslip->bonus_amount ?? 0) > 0) @endif @if((float)($payslip->arrear_amount ?? 0) > 0) @endif @php $variableAllowances = is_array($payslip->variable_allowances) ? $payslip->variable_allowances : []; @endphp @foreach($variableAllowances as $varKey => $varAmt) @if((float) $varAmt > 0) @endif @endforeach @if($payslip->total_leave_without_pay>0) @endif @if($payslip->late_attendance>0) @endif @foreach($salary->normalizedCustomDeductions() as $customDed) @if((float)($customDed['amount'] ?? 0) > 0) @endif @endforeach @if($payslip->provident_fund>0) @endif @if($payslip->total_absent>0) @endif @if($payslip->advance_salary_received_id!=null) @foreach(json_decode($payslip->advance_salary_received_id,true) as $advance_salary_recevied_id) @php $advance_salary_payment=\App\Models\advance_salary_received::where('id',$advance_salary_recevied_id)->first() @endphp @endforeach @endif @if(!empty($payslip->pf_loan_deduction) && $payslip->pf_loan_deduction>0) @endif @if(!empty($payslip->swf_employee_contribution) && $payslip->swf_employee_contribution>0) @endif @if(!empty($payslip->swf_loan_deduction) && $payslip->swf_loan_deduction>0) @endif @if(\App\Services\PayrollIncomeTaxService::enabled() && (float)($payslip->taxable_income ?? 0) > 0) @endif @if(\App\Services\PayrollIncomeTaxService::enabled() && (float)($payslip->income_tax ?? 0) > 0) @endif
Particulars Amount(+) Amount(-)
Basic {{$salary->basic_salary}} -
House Allowance {{$salary->house_rent}} -
Medical Allowance {{$salary->medical}} -
Food Allowance {{$salary->food}} -
Conveyance Allowance {{$salary->conveyance}} -
Utility Allowance {{$salary->utility}} -
Others Allowance {{$salary->Others}} -
{{ __('Bonus') }} {{ $payslip->bonus_amount }} -
{{ __('Arrear') }} {{ $payslip->arrear_amount }} -
{{ \App\Services\SalaryStructureService::labelForBreakdownKey($varKey) }} {{ number_format((float) $varAmt, 2) }} -
Deductions
Unpaid Leave [{{$payslip->total_leave_without_pay}}{{__('Days')}}] - {{$payslip->total_leave_without_pay*$payslip->perday_salary}}
Extra Delay [{{$payslip->late_attendance}}{{__('Days')}}] - {{$payslip->late_attendance*$payslip->perday_salary}}
{{ $customDed['label'] ?: __('Other deduction') }} - {{ number_format((float) $customDed['amount'], 2) }}
Provident Fund - {{$payslip->provident_fund}}
Absent({{$payslip->total_absent}}days X {{$payslip->perday_salary}}) - {{$payslip->total_absent*$payslip->perday_salary}}
Advance Salary ({{$advance_salary_payment->month}}-{{$advance_salary_payment->year}} ){{__(' Payment')}} - {{$advance_salary_payment->amount}}
PF Loan Deduction - {{$payslip->pf_loan_deduction}}
Staff Welfare Fund (Employee) - {{$payslip->swf_employee_contribution}}
SWF Loan Deduction - {{$payslip->swf_loan_deduction}}
{{ __('Taxable income') }} {{ $payslip->taxable_income }} -
{{ \App\Services\PayrollIncomeTaxService::label() }} - {{ $payslip->income_tax }}
Sub Total {{$payslip->gross_salary}} {{$payslip->total_deductions}}

Salary Summary

Earnings Deductions Net Salary
Total {{$payslip->gross_salary}} {{$payslip->total_deductions}} {{$payslip->net_salary}}
N.B: This is a system generated document
@if(get_setting('payslip_seal')==1)

HR Name

HR Designation

@endif