@extends('layouts.header_admin') @section('css') @endsection @section('content')
Generated By : @if($payroll->generated_by) {{ optional($payroll->user)->name ?? 'N/A' }} @else {{ $payroll->generated_by_name ?? 'N/A' }} @endif
Generated Date : {{ date('M. d, Y',strtotime($payroll->created_at)) }}
Store : {{ $payroll->store }}
Payroll Period : {{ date('M. d, Y',strtotime($payroll->payroll_from)) }} - {{ date('M. d, Y',strtotime($payroll->payroll_to)) }}
@php $c = 1; $height = 28; @endphp @foreach($payroll->informations as $payrollInfo) @if($payroll->status == null) @else @endif @if($payroll->status == null) @else @endif @include('additional_income') @include('gross_allowances') @include('deduction') @include('edit_payroll_data') @include('edit_government') @include('transfer_employee') @endforeach
# 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) @endif {{$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)}}{{number_format($payrollInfo->other_income_non_taxable,2)}} {{$payrollInfo->income_remarks}} {{number_format($payrollInfo->gross_pay,2)}}{{number_format($payrollInfo->other_income_non_taxable,2)}} {{$payrollInfo->income_remarks}} {{number_format($payrollInfo->gross_pay,2)}}{{number_format($payrollInfo->sss_contribution,2)}} {{number_format($payrollInfo->nhip_contribution,2)}} {{number_format($payrollInfo->hdmf_contribution,2)}}{{number_format($payrollInfo->other_deductions,2)}} {{$payrollInfo->deduction_remarks}} {{number_format($payrollInfo->total_deductions,2)}}{{number_format($payrollInfo->other_deductions,2)}} {{$payrollInfo->deduction_remarks}} {{number_format($payrollInfo->total_deductions,2)}} @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)}}
@foreach($payroll->informations as $payrollInfo) @endforeach @endsection @section('js') @endsection