Name | Period | Linked Employees | Payslips Records | Gross Pay | Deductions | Net Pay | Actions |
---|---|---|---|---|---|---|---|
{{ $item->short_description}} | {{ $item->currentPamPayRun? $item->currentPamPayRun->pamPayRunPeriod->calendar_month .'-'. $item->currentPamPayRun->pamPayRunPeriod->calendar_year:"" }} | {{ $item->pamEmps->count()}} | {{ $item->getTotalCurrentMonthPayslip()}} | {{ number_format($item->getTotalGrossPay(), 2, '.', ',') }} | {{ number_format($item->getTotalDeductions(), 2, '.', ',') }} | {{ number_format($item->getTotalNetPay() , 2, '.', ',') }} | @if(in_array($item->id, $processingPayrollIds)) Payroll Rollover or recalculation in progress... @else @canany(['Run payrolls']) @php $pamPayRun = App\Models\PamPayRun::where('id', $item->current_pay_run_id)->first() @endphp @canany(['Close payroll processing']) Employees @if($pamPayRun->pay_run_status==='open') Recalculate Close Posting @endif @endcanany @if($pamPayRun->pay_run_status==='closed') @canany(['Open payroll processing']) Open Posting @endcanany @endif @endcanany @endif |