@extends('layouts.master') @section('content')
{{ $title }}
A list of all Payrolls for your reporting.
@if(isset($error) || session('error'))
{{ $error ?? session('error') }}
@endif
@include('layouts.pagetitle')
@foreach($data as $item) @php $payrollArray =json_decode(auth()->user()->payrolls); @endphp @if ($payrollArray) @if (in_array($item->code, $payrollArray)) @endif @endif @endforeach
Name Period Employees Status Actions
{{ $item->short_description}} {{ $item->currentPamPayRun->pamPayRunPeriod->calendar_month .'-'. $item->currentPamPayRun->pamPayRunPeriod->calendar_year }} {{ $item->pamEmps->count() }} {{ $item->status }} @canany(['Run payrolls', 'View Reports']) View Payroll Periods @endcanany
@endsection @section('modal') @foreach($data as $item) @endforeach @endsection