{{ $item->short_description}} |
{{ $item->currentPamPayRun->pamPayRunPeriod->calendar_month .'-'. $item->currentPamPayRun->pamPayRunPeriod->calendar_year }}
|
{{ $item->pamEmps->count()}} |
{{ number_format($item->getTotalGrossPay(), 2, '.', ',') }} |
{{ number_format($item->getTotalDeductions(), 2, '.', ',') }} |
{{ number_format($item->getTotalNetPay() , 2, '.', ',') }} |
@php
$pamPayRun = App\Models\PamPayRun::where('id', $item->current_pay_run_id)->first()
@endphp
@if(auth()->user()->roles->first()->permissions->contains('name', 'Run payrolls'))
Employees
@endif
@if($pamPayRun->pay_run_status==='open')
@if(auth()->user()->roles->first()->permissions->contains('name', 'Run payrolls') && auth()->user()->roles->first()->permissions->contains('name', 'Close payroll postings'))
Recalculate
Close Posting
@endif
@endif
@if($pamPayRun->pay_run_status==='closed')
@if(auth()->user()->roles->first()->permissions->contains('name', 'Run payrolls') && auth()->user()->roles->first()->permissions->contains('name', 'Open payroll postings'))
Open Posting
@endif
@endif
|
@endforeach