@php ini_set("memory_limit", "-1"); @endphp {{ config('app.name', 'Laravel') }} @php function renderRow($label, $value, $label2 = '', $value2 = '') { if ($value == 0 && $value2 == 0) { return ''; } $output = ""; $output .= "$label"; $output .= "" . number_format($value, 2) . ""; if ($label2) { $output .= "$label2"; $output .= "" . number_format($value2, 2) . ""; } else { $output .= ""; } $output .= ""; return $output; } @endphp
@php $store = strtolower($payroll->payroll->store); $company = "7-STAR MANPOWER"; if(str_contains($store,"syzygy")) { $store_name = explode("-",$payroll->payroll->store); $store_name_data = $store_name[count($store_name)-1]; $company = "SYZYGY STAFFING RESOURCES AGENCY CORPORATION"; } else if(str_contains($store,"7-star manpower")) { $store_name = explode("-",$payroll->payroll->store); $store_name_data = $store_name[count($store_name)-1]; $company = "7-STAR MANPOWER SERVICES OF THE PHILIPPINES"; } else { $store_name = explode("_",$payroll->payroll->store); $store_name_data = $store_name[count($store_name)-1] ; $company = $store_name_data; } @endphp {{$company}} {{-- P A Y S L I P --}}
EMPLOYEE : {{strtoupper($payroll->employee_name)}}
ASSIGNED AT : {{strtoupper($store_name_data)}}
DATE COVERED : {{date('M d, Y',strtotime($payroll->payroll->payroll_from))}} - {{date('M d, Y',strtotime($payroll->payroll->payroll_to))}}
@if($payroll->sss_salary_loan > 0) @else @endif @if($payroll->sss_calamity_loan > 0) @else @endif @if($payroll->pagibig_multi_purpose_loan > 0) @else @endif @if($payroll->pagibig_calamity_loan > 0) @else @endif @if($payroll->amount_rest_day_overtime > 0) @endif @if($payroll->amount_legal_holiday_overtime > 0) @endif @if($payroll->amount_special_holiday_overtime > 0) @endif @foreach($payroll->payroll_allowances as $key => $allow) @endforeach
EARNINGS DEDUCTIONS
REGULAR HOURS {{number_format($payroll->hours_work,2)}} SSS {{number_format($payroll->sss_contribution,2)}}
TOTAL DAYS {{number_format($payroll->days_work,2)}} PHILHEALTH {{number_format($payroll->nhip_contribution,2)}}
LATE MINUTES {{number_format($payroll->hours_tardy_basic,2)}} PAGIBIG {{number_format($payroll->hdmf_contribution,2)}}
REGULAR PAY {{number_format($payroll->basic_pay,2)}} SSS SALARY LOAN {{ number_format($payroll->sss_salary_loan,2) }}
OVERTIME PAY {{number_format($payroll->amount_overtime,2)}} SSS CALAMITY LOAN {{ number_format($payroll->sss_calamity_loan,2) }}
REST DAY PAY {{number_format($payroll->amount_rest_days,2)}} PAGIBIG MULTI-PURPOSE LOAN {{ number_format($payroll->pagibig_multi_purpose_loan,2) }}
NIGHT DIFF {{number_format($payroll->amount_night_diff,2)}} PAGIBIG CALAMITY LOAN {{ number_format($payroll->pagibig_calamity_loan,2) }}
LEGAL HOLIDAY {{number_format($payroll->amount_legal_holiday,2)}}
SPECIAL HOLIDAY {{number_format($payroll->amount_special_holiday,2)}}
REST DAY OT {{ number_format($payroll->amount_rest_day_overtime,2) }}
LEGAL HOLIDAY OT {{ number_format($payroll->amount_legal_holiday_overtime,2) }}
SPECIAL HOLIDAY OT {{ number_format($payroll->amount_special_holiday_overtime,2) }}
OTHER INCOME {{number_format($payroll->other_income_non_taxable,2)}} OTHER DEDUCTIONS {{number_format($payroll->other_deductions,2)}}
{{strtoupper($allow->name)}} {{number_format($allow->amount,2)}}
GROSS PAY {{number_format($payroll->gross_pay,2)}} TOTAL DEDUCTIONS {{number_format($payroll->total_deductions,2)}}
SUMMARY ACKNOWLEDGEMENT
GROSS PAY {{number_format($payroll->gross_pay,2)}} I HAVE READ AND UNDERSTOOD THE ABOVE COMPUTATIONS OF MY SALARY.

_______________________
Signature with Date
TOTAL DEDUCTIONS {{number_format($payroll->total_deductions,2)}}
NET PAY {{number_format($payroll->net_pay,2)}}