@extends('layouts.app') @section('title', 'Payroll Periods') @section('content')

Payroll Management

@can('process payroll') Create New Period @endcan

Filters

@forelse($periods as $period) @empty @endforelse
Period Status Employees Total Gross Pay Total Net Pay Processed By Actions
{{ $period->period_start->format('M d, Y') }} - {{ $period->period_end->format('M d, Y') }} {{ ucfirst($period->status) }} {{ $period->getEmployeeCount() }} LKR {{ number_format($period->getTotalGrossPay(), 2) }} LKR {{ number_format($period->getTotalNetPay(), 2) }} {{ $period->processedBy?->name ?? '-' }} View @can('process payroll') @if($period->canBeProcessed())
@csrf
@endif @endcan @can('approve payroll') @if($period->canBeApproved())
@csrf
@endif @endcan @if($period->isApproved())
@csrf
@endif @if($period->isDraft())
@csrf @method('DELETE')
@endif
No payroll periods found
@if($periods->hasPages())
{{ $periods->links() }}
@endif
@can('process payroll')

Payroll Calculation Settings

@if(session('settings_success')) @endif
@csrf @method('PUT')

Overtime Settings

e.g., 1.5 = 150% of regular rate

e.g., 2.0 = 200% of regular rate

Hours before OT starts (e.g., 8.0)

e.g., 1000 LKR per OT hour

e.g., 1500 LKR per OT hour

Hours before OT starts (e.g., 8.0)

EPF (Employee Provident Fund)

Sri Lankan standard: 8%

Sri Lankan standard: 12%

ETF (Employee Trust Fund)

Sri Lankan standard: 3%

These settings will apply to all future payroll calculations.

@if($settings->updated_by)
Last updated by {{ $settings->updatedBy->name }} on {{ $settings->updated_at->format('M d, Y \a\t h:i A') }}
@endif
@endcan
@endsection