Earnings
@php $earningsFields = [
'Basic Pay' => $record->basic_pay,
'PERA' => $record->pera,
'AdCom' => $record->adcom,
'Representation Allowance' => $record->representation_allowance,
'Transportation Allowance' => $record->transportation_allowance,
'Clothing Allowance' => $record->clothing_allowance,
'Hazard Pay' => $record->hazard_pay,
'Subsistence Allowance' => $record->subsistence_allowance,
'Laundry Allowance' => $record->laundry_allowance,
'Longevity Pay' => $record->longevity_pay,
'Overtime Pay' => $record->overtime_pay,
'Night Differential' => $record->night_differential,
'Year-End Bonus' => $record->year_end_bonus,
'Cash Gift' => $record->cash_gift,
'13th Month Pay' => $record->thirteenth_month_pay,
'Terminal Leave Pay' => $record->terminal_leave_pay,
'Other Earnings' => $record->other_earnings,
]; @endphp
@foreach ($earningsFields as $label => $amount)
{{ $label }}
{{ number_format($amount, 2) }}
@endforeach
GROSS PAY
{{ number_format($record->gross_pay, 2) }}
Deductions
@php $deductionFields = [
'GSIS Premium (9%)' => $record->gsis_premium,
'GSIS Loan' => $record->gsis_loan,
'GSIS Policy Loan' => $record->gsis_policy_loan,
'GSIS Emergency Loan' => $record->gsis_emergency_loan,
'GSIS Educational Loan' => $record->gsis_educational_loan,
'GSIS Housing Loan' => $record->gsis_housing_loan,
'PhilHealth' => $record->philhealth,
'Pag-IBIG' => $record->pagibig,
'Pag-IBIG Loan' => $record->pagibig_loan,
'Pag-IBIG Housing Loan' => $record->pagibig_housing_loan,
'Withholding Tax' => $record->withholding_tax,
'Tardiness/Undertime' => $record->tardiness_undertime,
'LWOP Deduction' => $record->lwop_deduction,
'Other Deductions' => $record->other_deductions,
]; @endphp
@foreach ($deductionFields as $label => $amount)
{{ $label }}
{{ number_format($amount, 2) }}
@endforeach
TOTAL DEDUCTIONS
{{ number_format($record->total_deductions, 2) }}