@if($payslip->earning)
@php
$reasons = json_decode($payslip->earning->additional_reason);
$amounts = json_decode($payslip->earning->additional_amount);
@endphp
@if (count($reasons) > 0 && count($amounts) > 0 && count($reasons) == count($amounts))
@for ($i = 0; $i < count($reasons); $i++)
Other Additions- {{ $reasons[$i] }} {{ $amounts[$i] }}
|
@endfor
@endif
@endif
Other Additions- Gratuity {{ number_format($payslip->total_gratuity_amount, 2) }}
|
Other Additions- Leave Accrual {{ number_format($payslip->total_leave_accural_amount, 2) }}
|
| Total Additions Amount{{number_format($payslip->total_addtional_amount+$payslip->total_gratuity_amount+$payslip->total_leave_accural_amount, 2)}} |
@if($payslip->deduction)
@php
$reasons = json_decode($payslip->deduction->deduction_reason);
$amounts = json_decode($payslip->deduction->deduction_amount);
@endphp
@if (count($reasons) > 0 && count($amounts) > 0 && count($reasons) == count($amounts))
@for ($i = 0; $i < count($reasons); $i++)
Other Deduction- {{ $reasons[$i] }} {{ $amounts[$i] }}
|
@endfor
@endif
@endif
| Total Deductions Amount{{$payslip->total_deduction_amount}} |
| Leave Deductions Amount{{number_format($payslip->total_leave_deduction_amount, 2)}} |
NET PAY{{number_format($payslip->net_salary, 2)}}
|