@extends('layouts.master') @section('content')
{{ $title }}
A list of all Payrolls defined in the systems regardless of the status.
@if(isset($error) || session('error'))
{{ $error ?? session('error') }}
@endif
@include('layouts.pagetitle')
@foreach($data as $item) @endforeach
Name Period Tax Table NAPSA Working Days Employees Status Actions
{{ $item->short_description}} {{ $item->currentPamPayRun->pamPayRunPeriod->calendar_month .'-'. $item->currentPamPayRun->pamPayRunPeriod->calendar_year }} {{ $item->currentPamTaxTable->code}} {{ $item->currentPamSocialSecurity->code }} {{ $item->working_days }} {{ $item->pamEmps->count() }} {{ $item->status }} @canany(['Run payrolls']) @php $pamPayRun = App\Models\PamPayRun::where('id', $item->current_pay_run_id)->first() @endphp @if($pamPayRun->pay_run_status==='open') Recalculate Payslips @endif Employees @endcanany
@endsection @section('modal') @foreach($data as $item) @endforeach @endsection