@php $monthNum = $details['month']; $dateObj = DateTime::createFromFormat('!m', $monthNum); $monthName = $dateObj->format('F'); @endphp
@if(($logoimg ?? null) !== null) @endif @if(isset($description) && $description != null && $description!=''){{ '('.$description.')' }} @endif{{$monthName}} {{ $details['epay_year'] }} DATE : {{$time}}
@php $totalallowance = ($details['allowance_1']+$details['allowance_2']+$details['allowance_3']+$details['allowance_4']+$details['allowance_5']+$details['allowance_6']+$details['allowance_7']+$details['allowance_8']+$details['allowance_9']+$details['allowance_10']+$details['allowance_11']+$details['allowance_12']+$details['allowance_13']+$details['allowance_14']+$details['allowance_15']+$details['allowance_16']+$details['allowance_17']); $totaldeduction = ($details['deduction_1']+$details['deduction_2']+$details['deduction_3']+$details['deduction_4']+$details['deduction_5']+$details['deduction_6']+$details['deduction_7']+$details['deduction_8']+$details['deduction_9']+$details['deduction_10']+$details['deduction_11']+$details['deduction_12']+$details['deduction_13']+$details['deduction_14']+$details['deduction_15'])+$details['advance']; $totalgrosspay = ($details['basic_pay']+$details['back_pay']+$details['director_fee']+$details['total_monthly_over_time_pay']+$totalallowance+$details['bonus']+$details['commision']+$details['fix_commision']); $totalnetpay = ($totalgrosspay-$totaldeduction-$details['total_EPF_employee']-$details['total_socso_employee']-$details['Eisww']-$details['itaxpcb']); @endphp

Name :

{{$name}}

ALLOWANCE

DEDUCTION

I/C NO. :

{{$details['ic_no_new']}}


@if($details['allowance_1'] != '0') {{$field_result['allowance_1']}} @else
@endif

@if($details['allowance_1'] != '0') {{number_format($details['allowance_1'], 2)}} @else
@endif

@if($details['deduction_1'] != '0') {{$field_result['deduction_1']}} @else
@endif

@if($details['deduction_1'] != '0') {{number_format($details['deduction_1'], 2)}} @else
@endif

EMPLOYEE :

{{$details['ic_no_new']}}


@if($details['allowance_2'] != '0') {{$field_result['allowance_2']}} @endif

@if($details['allowance_2'] != '0') {{number_format($details['allowance_2'], 2)}} @endif

@if($details['deduction_2'] != '0') {{$field_result['deduction_2']}} @endif

@if($details['deduction_2'] != '0') {{number_format($details['deduction_2'], 2)}} @endif

CATEGORY :

{{$category_name}}


@if($details['allowance_3'] != '0') {{$field_result['allowance_3']}} @endif

@if($details['allowance_3'] != '0') {{number_format($details['allowance_3'], 2)}} @endif

@if($details['deduction_3'] != '0') {{$field_result['deduction_3']}} @endif

@if($details['deduction_3'] != '0') {{number_format($details['deduction_3'], 2)}} @endif

LINE NO. :



@if($details['allowance_4'] != '0') {{$field_result['allowance_4']}} @endif

@if($details['allowance_4'] != '0') {{number_format($details['allowance_4'], 2)}} @endif

@if($details['deduction_4'] != '0') {{$field_result['deduction_4']}} @endif

@if($details['deduction_4'] != '0') {{number_format($details['deduction_4'], 2)}} @endif

@if(isset($details['advance']) && $details['advance'] != '0') {{ $field_result['advance'] ?? '' }} @endif

@if($details['advance'] != '0') {{number_format($details['advance'], 2)}} @endif




@if($details['allowance_5'] != '0') {{$field_result['allowance_5']}} @endif

@if($details['allowance_5'] != '0') {{number_format($details['allowance_5'], 2)}} @endif

@if($details['deduction_5'] != '0') {{$field_result['deduction_5']}} @endif

@if($details['deduction_5'] != '0') {{number_format($details['deduction_5'], 2)}} @endif

PAYMENT

@if($details['allowance_6'] != '0') {{$field_result['allowance_6']}} @endif

@if($details['allowance_6'] != '0') {{number_format($details['allowance_6'], 2)}} @endif

@if($details['deduction_6'] != '0') {{$field_result['deduction_6']}} @endif

@if($details['deduction_6'] != '0') {{number_format($details['deduction_6'], 2)}} @endif




@if($details['basic_rate'] !=0)

BASIC RATE

@endif
@if($details['basic_rate'] !=0)

{{number_format($details['basic_rate'], 2)}}

@endif


@if($details['allowance_7'] != '0') {{$field_result['allowance_7']}} @endif

@if($details['allowance_7'] != '0') {{number_format($details['allowance_7'], 2)}} @endif

@if($details['deduction_7'] != '0') {{$field_result['deduction_7']}} @endif

@if($details['deduction_7'] != '0') {{number_format($details['deduction_7'], 2)}} @endif

@if($details['day_work'] !=0)

WORKING DAYS

@endif
@if($details['day_work'] !=0)

{{$details['day_work']}}

@endif


@if($details['allowance_8'] != '0') {{$field_result['allowance_8']}} @endif

@if($details['allowance_8'] != '0') {{number_format($details['allowance_8'], 2)}} @endif

@if($details['deduction_8'] != '0') {{$field_result['deduction_8']}} @endif

@if($details['deduction_8'] != '0') {{number_format($details['deduction_8'], 2)}} @endif

@if($details['basic_pay'] != 0)

BASIC PAY

@endif
@if($details['basic_pay'] != 0)

{{number_format($details['basic_pay'], 2)}}

@endif


@if($details['allowance_9'] != '0') {{$field_result['allowance_9']}} @endif

@if($details['allowance_9'] != '0') {{number_format($details['allowance_9'], 2)}} @endif

@if($details['deduction_9'] != '0') {{$field_result['deduction_9']}} @endif

@if($details['deduction_9'] != '0') {{number_format($details['deduction_9'], 2)}} @endif

@if($details['director_fee'] != 0)

DIRECTOR FEE

@endif
@if($details['director_fee'] != 0)

{{number_format($details['director_fee'], 2)}}

@endif


@if($details['allowance_10'] != '0') {{$field_result['allowance_10']}} @endif

@if($details['allowance_10'] != '0') {{number_format($details['allowance_10'], 2)}} @endif

@if($details['deduction_10'] != '0') {{$field_result['deduction_10']}} @endif

@if($details['deduction_10'] != '0') {{number_format($details['deduction_10'], 2)}} @endif

@if($details['compensate'] + $details['gratuity'] != 0)

COMPENSATION/

@endif
@if($details['compensate'] + $details['gratuity'] != 0)

{{number_format(($details['compensate'] + $details['gratuity']), 2)}}

@endif


@if($details['allowance_11'] != '0') {{$field_result['allowance_11']}} @endif

@if($details['allowance_11'] != '0') {{number_format($details['allowance_11'], 2)}} @endif

@if($details['deduction_11'] != '0') {{$field_result['deduction_11']}} @endif

@if($details['deduction_11'] != '0') {{number_format($details['deduction_11'], 2)}} @endif

@if($details['compensate'] + $details['gratuity'] != 0)

GRATUITY

@endif @if($details['bonus'] != 0)

BONUS

@endif
@if($details['compensate'] + $details['gratuity'] != 0)


@endif @if($details['bonus'] != 0)

{{number_format($details['bonus'], 2)}}

@endif


@if($details['allowance_12'] != '0') {{$field_result['allowance_12']}} @endif

@if($details['allowance_12'] != '0') {{number_format($details['allowance_12'], 2)}} @endif

@if($details['deduction_12'] != '0') {{$field_result['deduction_12']}} @endif

@if($details['deduction_12'] != '0') {{number_format($details['deduction_12'], 2)}} @endif

@if(($details['commision'] + $details['fix_commision']) != '0')

COMMISSION

@endif


@if($details['total_monthly_over_time_pay'] != '0')

OVERTIME

@endif
@if(($details['commision'] + $details['fix_commision']) != '0')

{{number_format(($details['commision'] + $details['fix_commision']), 2)}}

@endif


@if($details['total_monthly_over_time_pay'] != '0')

{{number_format($details['total_monthly_over_time_pay'], 2)}}

@endif


@if($details['allowance_13'] != '0') {{$field_result['allowance_13']}} @endif

@if($details['allowance_13'] != '0') {{number_format($details['allowance_13'], 2)}} @endif

@if($details['deduction_13'] != '0') {{$field_result['deduction_13']}} @endif

@if($details['deduction_13'] != '0') {{number_format($details['deduction_13'], 2)}} @endif

@if($details['total_allowance'] != '0')

ALLOWANCE

@endif
@if($details['total_allowance'] != '0')

{{number_format($details['total_allowance'], 2)}}

@endif


@if($details['allowance_14'] != '0') {{$field_result['allowance_14']}} @endif

@if($details['allowance_14'] != '0') {{number_format($details['allowance_14'], 2)}} @endif

@if($details['deduction_14'] != '0') {{$field_result['deduction_14']}} @endif

@if($details['deduction_14'] != '0') {{number_format($details['deduction_14'], 2)}} @endif

@if($totalgrosspay != '0')

GROSS PAY

@endif
@if($totalgrosspay != '0')

{{number_format($totalgrosspay, 2)}}

@endif


@if($details['allowance_15'] != '0') {{$field_result['allowance_15']}} @endif

@if($details['allowance_16'] != '0') {{$field_result['allowance_16']}} @endif

@if($details['allowance_17'] != '0') {{$field_result['allowance_17']}} @endif

@if($details['allowance_15'] != '0') {{number_format($details['allowance_15'], 2)}} @endif

@if($details['allowance_16'] != '0') {{number_format($details['allowance_16'], 2)}} @endif

@if($details['allowance_17'] != '0') {{number_format($details['allowance_17'], 2)}} @endif

@if($details['deduction_15'] != '0') {{$field_result['deduction_15']}} @endif

@if($details['deduction_15'] != '0') {{number_format($details['deduction_15'], 2)}} @endif

OVERTIME

OTHER

@if($details['other_deduction'] != '0')

DEDUCTION

@endif
@if($details['other_deduction'] != '0')

{{number_format($details['other_deduction'], 2)}}

@endif



RATE HRS / DAYS AMOUNT
@if($details['rate_over_time_1'] !=0 || $details['amount_over_time_1'] != 0 || $details['hr1'] != 0){{$field_result['overtime_1'] ?? '1.0 TIME'}}@endif @if($details['rate_over_time_1'] !=0){{$details['rate_over_time_1']}} @endif @if($details['hr1'] !=0){{number_format($details['hr1'],2)}} HRS @endif @if($details['amount_over_time_1'] !=0){{ $details['amount_over_time_1'] }}@endif
@if($details['rate_over_time_2'] !=0 || $details['amount_over_time_2'] != 0 || $details['hr2'] != 0){{$field_result['overtime_2'] ?? '1.5 TIMES'}}@endif @if($details['rate_over_time_2'] !=0){{$details['rate_over_time_2']}} @endif @if($details['hr2'] != 0){{number_format($details['hr2'],2) }} HRS @endif @if($details['amount_over_time_2'] != 0){{ $details['amount_over_time_2'] }} @endif
@if($details['rate_over_time_3'] !=0 || $details['amount_over_time_3'] != 0 || $details['hr3'] != 0){{$field_result['overtime_3'] ?? '2.0 TIMES'}}@endif @if($details['rate_over_time_3'] !=0){{$details['rate_over_time_3']}} @endif @if($details['hr3'] != 0){{number_format($details['hr3'],2) }} HRS @endif @if($details['amount_over_time_3'] != 0){{ $details['amount_over_time_3'] }} @endif
@if($details['rate_over_time_4'] !=0 || $details['amount_over_time_4'] != 0 || $details['hr4'] != 0){{$field_result['overtime_4'] ?? '3.0 TIMES'}} @endif @if($details['rate_over_time_4'] !=0){{$details['rate_over_time_4']}} @endif @if($details['hr4'] != 0){{number_format($details['hr4'],2) }} HRS @endif @if($details['amount_over_time_4'] != 0){{ $details['amount_over_time_4'] }} @endif
@if($details['rate_over_time_5'] !=0 || $details['amount_over_time_5'] != 0 || $details['hr5'] != 0){{$field_result['overtime_5'] ?? 'REST DAY'}} @endif @if($details['rate_over_time_5'] !=0){{$details['rate_over_time_5']}} @endif @if($details['hr5'] != 0){{number_format($details['hr5'],2) }}DAYS @endif @if($details['amount_over_time_5'] != 0){{ $details['amount_over_time_5'] }} @endif
@if($details['rate_over_time_6'] !=0 || $details['amount_over_time_6'] != 0 || $details['hr6'] != 0){{$field_result['overtime_6'] ?? 'PUB.HOL.'}} @endif @if($details['rate_over_time_6'] !=0){{$details['rate_over_time_6']}} @endif @if($details['hr6'] != 0){{number_format($details['hr6'],2) }}DAYS @endif @if($details['amount_over_time_6'] != 0){{ $details['amount_over_time_6'] }} @endif
@if($totalgrosspay != '0')

MONTHLY GROSS

@endif

@if($details['total_socso_employer'] != '0') SOCSO YER @endif

@if($details['Eiscc'] != '0') EIS YER @endif

@if($details['total_EPF_employer'] != '0') EPF YER @endif

@if($details['AL'] != '0') YTD AL @endif

@if($details['MC'] != '0') YTD MC @ELSE
@endif

@if($totalgrosspay !=0)

{{number_format($totalgrosspay, 2)}}

@endif

@if($details['total_socso_employer'] !=0) {{number_format($details['total_socso_employer'], 2)}} @endif

@if($details['Eiscc'] !=0) {{number_format($details['Eiscc'], 2)}} @endif

@if($details['total_EPF_employer'] !=0) {{number_format($details['total_EPF_employer'], 2)}} @endif

@if($details['AL'] !=0) {{$details['AL']}} @endif

@if($details['MC'] !=0) {{$details['MC']}} @else
@endif

@if($details['total_EPF_employee'] != '0')

EPF

@endif @if($details['total_socso_employee'] != '0')

SOCSO

@endif
@if($details['total_EPF_employee'] != '0')

{{number_format($details['total_EPF_employee'], 2)}}

@endif @if($details['total_socso_employee'] != '0')

{{number_format($details['total_socso_employee'], 2)}}

@endif


@if($details['Eisww'] !='0')

EIS

@endif
@if($details['Eisww'] !='0')

{{number_format($details['Eisww'], 2)}}

@endif


@if(number_format($details['itaxpcb'], 2) != 0)

TAX

@endif
@if(number_format($details['itaxpcb'], 2) != 0)

{{ number_format($details['itaxpcb'], 2) }}

@endif








@if($totalnetpay !=0)

NET PAY

@endif
@if($totalnetpay !=0)

{{ number_format($totalnetpay, 2) }}

@endif



EMPLOYEE'S SIGNATURE