@extends('layouts.header_admin') @section('css') @endsection @section('content')
# | Employee Name | Daily Rate | Daily Rate/Hour | Hours Work (hr) | Overtime (hr) | Special holiday (day) | Legal holiday (day) | Days Work (day) | Hours Tardy (hr) | Night Diff (hr) | Basic Pay | Amount Overtime | Amount Special holiday | Amount Legal Holiday | Amount Night Diff | Hours Tardy Basic | Other Income Non Taxable | Other Income Remarks | Gross Pay | SSS Contribution | NHIP Contribution | HDMF Contribution | Other Deductions | Other Deductions Remarks | Total Deductions | NET PAY | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@if($payroll->status == null)
|
{{$c++}} | {{strtoupper($payrollInfo->employee_name)}} | {{number_format($payrollInfo->daily_rate,2)}} | {{number_format($payrollInfo->hour_rate,2)}} | {{number_format($payrollInfo->hours_work,2)}} | {{number_format($payrollInfo->overtime,2)}} | {{number_format($payrollInfo->special_holiday,2)}} | {{number_format($payrollInfo->legal_holiday,2)}} | {{number_format($payrollInfo->days_work,2)}} | {{number_format($payrollInfo->hours_tardy,2)}} | {{number_format($payrollInfo->night_diff,2)}} | {{number_format($payrollInfo->basic_pay,2)}} | {{number_format($payrollInfo->amount_overtime,2)}} | {{number_format($payrollInfo->amount_special_holiday,2)}} | {{number_format($payrollInfo->amount_legal_holiday,2)}} | {{number_format($payrollInfo->amount_night_diff,2)}} | {{number_format($payrollInfo->hours_tardy_basic,2)}} | @if($payroll->status == null){{number_format($payrollInfo->other_income_non_taxable,2)}} | {{$payrollInfo->income_remarks}} | {{number_format($payrollInfo->gross_pay,2)}} | @else{{number_format($payrollInfo->other_income_non_taxable,2)}} | {{$payrollInfo->income_remarks}} | {{number_format($payrollInfo->gross_pay,2)}} | @endif{{number_format($payrollInfo->sss_contribution,2)}} | {{number_format($payrollInfo->nhip_contribution,2)}} | {{number_format($payrollInfo->hdmf_contribution,2)}} | @if($payroll->status == null){{number_format($payrollInfo->other_deductions,2)}} | {{$payrollInfo->deduction_remarks}} | {{number_format($payrollInfo->total_deductions,2)}} | @else{{number_format($payrollInfo->other_deductions,2)}} | {{$payrollInfo->deduction_remarks}} | {{number_format($payrollInfo->total_deductions,2)}} | @endif@php $netPay = number_format($payrollInfo->net_pay,2); @endphp @if($netPay < 0) 0 @else {{ $netPay }} @endif |
Total | {{number_format(($payroll->informations)->sum('daily_rate'),2)}} | {{number_format(($payroll->informations)->sum('hour_rate'),2)}} | {{number_format(($payroll->informations)->sum('hours_work'),2)}} | {{number_format(($payroll->informations)->sum('overtime'),2)}} | {{number_format(($payroll->informations)->sum('special_holiday'),2)}} | {{number_format(($payroll->informations)->sum('legal_holiday'),2)}} | {{number_format(($payroll->informations)->sum('days_work'),2)}} | {{number_format(($payroll->informations)->sum('hours_tardy'),2)}} | {{number_format(($payroll->informations)->sum('night_diff'),2)}} | {{number_format(($payroll->informations)->sum('basic_pay'),2)}} | {{number_format(($payroll->informations)->sum('amount_overtime'),2)}} | {{number_format(($payroll->informations)->sum('amount_special_holiday'),2)}} | {{number_format(($payroll->informations)->sum('amount_legal_holiday'),2)}} | {{number_format(($payroll->informations)->sum('amount_night_diff'),2)}} | {{number_format(($payroll->informations)->sum('hours_tardy_basic'),2)}} | {{number_format(($payroll->informations)->sum('other_income_non_taxable'),2)}} | 0.00 | {{number_format(($payroll->informations)->sum('gross_pay'),2)}} | {{number_format(($payroll->informations)->sum('sss_contribution'),2)}} | {{number_format(($payroll->informations)->sum('nhip_contribution'),2)}} | {{number_format(($payroll->informations)->sum('hdmf_contribution'),2)}} | {{number_format(($payroll->informations)->sum('other_deductions'),2)}} | 0.00 | {{number_format(($payroll->informations)->sum('total_deductions'),2)}} | {{number_format(($payroll->informations)->sum(function($payrollInfo) { return $payrollInfo->net_pay >= 0 ? $payrollInfo->net_pay : 0; }),2)}} |