{{-- GROSS EARNING --}}
|
GROSS EARNING Amount (RM)
| BASIC SALARY | {{ number_format($p->basic_salary, 2) }} |
| WORKING DAYS {{ rtrim(rtrim(number_format($p->working_days,2),'0'),'.') }} /{{ $p->days_divisor }} {{ rtrim(rtrim(number_format($p->working_units,2),'0'),'.') }} | |
| AL | {{ number_format($p->al_amount, 2) }} |
| UL | {{ number_format($p->ul_amount, 2) }} |
| OVERTIME {{ rtrim(rtrim(number_format($p->ot_hours,2),'0'),'.') }} hrs | {{ $p->ot_amount > 0 ? number_format($p->ot_amount,2) : '' }} |
| PUBLIC HOLIDAY/SUNDAY {{ rtrim(rtrim(number_format($p->ph_hours,2),'0'),'.') }} hrs | {{ $p->ph_amount > 0 ? number_format($p->ph_amount,2) : '' }} |
@foreach($p->allowanceLines as $l)| {{ $l->label }} | {{ number_format($l->amount,2) }} | @endforeach
|
| TOTAL EARNING / INCOME | {{ number_format($p->total_earning, 2) }} |
NETT PAY {{ number_format($p->nett_pay, 2) }}
|
{{-- DEDUCTIONS --}}
DEDUCTIONS Amount (RM)
@foreach(['epf_employee'=>'EPF (EMPLOYEE)','socso_employee'=>'SOCSO (EMPLOYEE)','eis_employee'=>'EIS (EMPLOYEE)','income_tax_pcb'=>'INCOME TAX PCB','income_tax_cp38'=>'INCOME TAX CP38','unpaid_leave'=>'UNPAID LEAVE','advance'=>'ADVANCE','loan'=>'LOAN'] as $f=>$lbl)
| {{ $lbl }} | {{ $p->$f > 0 ? number_format($p->$f,2) : '' }} |
@endforeach
@foreach($p->deductionLines as $l)| {{ $l->label }} | {{ number_format($l->amount,2) }} | @endforeach
|
| TOTAL DEDUCTIONS | {{ number_format($p->total_deductions, 2) }} |
ALLOWANCE
|