@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
@if($logoimg != null)@else {{$companyTitle['name']}} @endif
NAME : {{$name}}
I/C NO. : {{$details['ic_no_new']}}

{{ $months[$slip_month - 1]}} - {{$slip_year}}

MONTHLY / BANK

{{$time}}

@if(isset($description) && $description != null && $description!=''){{ '('.$description.')' }} @endif

hr1

EARNINGS

DEDUCTION

EMPLOYER

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

EPF

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

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

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

SOCSO

@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

SHIFT ALLOWANCE : TABLE 1


RATE HRS AMOUNT

SHIFT 1 0.00

SHIFT 2 0.00

SHIFT 3 0.00

SHIFT 4 0.00

SHIFT 5 0.00

SHIFT 6 0.00


BASIC RATE 5000.00

UNPAID 192.31

LATENESS HOURS 8.00

LATENESS AMOUNT 192.32





EMPLOYEE'S SIGNATURE

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

BASIC PAY

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

BONUS

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

COMMISSION

@endif


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

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

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

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

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

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

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

{{$field_result['deduction_1']}}

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

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

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

DIRECTOR FEE

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

COMPENSATION / GRATUITY

@endif


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

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

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

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

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

{{$field_result['advance']}}

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

{{$field_result['deduction_2']}}

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

{{$field_result['deduction_3']}}

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

{{$field_result['deduction_4']}}

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

{{$field_result['deduction_5']}}

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

{{$field_result['deduction_6']}}

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

{{$field_result['deduction_7']}}

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

{{$field_result['deduction_8']}}

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

{{$field_result['deduction_9']}}

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

{{$field_result['deduction_10']}}

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

{{$field_result['deduction_11']}}

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

{{$field_result['deduction_12']}}

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

{{$field_result['deduction_13']}}

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

{{$field_result['deduction_14']}}

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

{{$field_result['deduction_15']}}

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

TAX

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@endif







OVERTIME



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

{{$field_result['overtime_1'] ?? '1.0 TIME'}}

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

1.0

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

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

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

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

{{$field_result['overtime_2'] ?? '1.5 TIMES'}}

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

2.00

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

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

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

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

{{$field_result['overtime_3'] ?? '2.0 TIMES'}}

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

3.00

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

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

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

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

{{$field_result['overtime_4'] ?? '3.0 TIMES'}}

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

4.00

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

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

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

@endif



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

{{$field_result['overtime_5'] ?? 'REST DAY'}}

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

1.00

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

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

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

@endif



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

PUB.HOL.

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

1.00

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

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

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

@endif



ALLOWANCE





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

{{$field_result['allowance_1']}}

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

{{$field_result['allowance_2']}}

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

{{$field_result['allowance_3']}}

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

{{$field_result['allowance_4']}}

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

{{$field_result['allowance_5']}}

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

{{$field_result['allowance_6']}}

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

{{$field_result['allowance_7']}}

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

{{$field_result['allowance_8']}}

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

{{$field_result['allowance_9']}}

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

{{$field_result['allowance_10']}}

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

{{$field_result['allowance_11']}}

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

{{$field_result['allowance_12']}}

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

{{$field_result['allowance_13']}}

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

{{$field_result['allowance_14']}}

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

{{$field_result['allowance_15']}}

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

{{$field_result['allowance_16']}}

@endif


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

{{$details['allowance_1']}}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@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($totalgrosspay != '0')

GROSS PAY

@endif


@if($totalgrosspay != '0')

{{number_format($totalgrosspay, 2)}}

@endif
@if(number_format($net_pay, 2)!=0)

NET PAY

@endif
@if(number_format($net_pay, 2)!=0)

{{number_format($net_pay, 2)}}

@endif