@extends('layouts.app') @section('title','Payroll') @section('page-title','Payroll') @section('content') @if(!auth()->user()->canAccess('payroll'))
You do not have permission to access Payroll.
@else
@forelse($periods as $period) @empty @endforelse
Period Date Range Payment Date Employees Status Actions
{{ $period->name }} {{ \Carbon\Carbon::parse($period->start_date)->format('M j') }} — {{ \Carbon\Carbon::parse($period->end_date)->format('M j, Y') }} {{ \Carbon\Carbon::parse($period->payment_date)->format('M j, Y') }} {{ $period->records_count }} {{ ucfirst($period->status) }}
@if($period->status === 'draft' && auth()->user()->hasRole('super_admin','president'))
@csrf
@endif
No payroll periods found
@if($periods->hasPages())
{{ $periods->links('pagination::bootstrap-5') }}
@endif
@endif @endsection