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

Payroll Period: {{ $payroll->period_start->format('M d, Y') }} - {{ $payroll->period_end->format('M d, Y') }}

Back to List

Employees

{{ $summary['employee_count'] }}

Total Gross Pay

LKR {{ number_format($summary['total_gross_pay'], 2) }}

Total Net Pay

LKR {{ number_format($summary['total_net_pay'], 2) }}

Status

{{ ucfirst($payroll->status) }}

Actions

@can('process payroll') @if($payroll->canBeProcessed())
@csrf
@endif @endcan @can('approve payroll') @if($payroll->canBeApproved())
@csrf
@endif @endcan @if($payroll->isApproved())
@csrf
@endif Export CSV @if($payroll->isDraft())
@csrf @method('DELETE')
@endif

Payroll Entries

@forelse($payroll->payrollEntries as $entry) @empty @endforelse @if($payroll->payrollEntries->count() > 0) @endif
Employee Regular Hours OT (1.5x) OT (2x) Gross Pay EPF (8%) Net Pay Status
{{ $entry->employee->getFullName() }}
{{ $entry->employee->employee_number }}
{{ number_format($entry->regular_hours, 2) }} {{ number_format($entry->overtime_hours, 2) }} {{ number_format($entry->overtime_hours_2x, 2) }} LKR {{ number_format($entry->gross_pay, 2) }} LKR {{ number_format($entry->epf_employee, 2) }} LKR {{ number_format($entry->net_pay, 2) }} {{ ucfirst($entry->status) }}
No payroll entries found. Process the payroll to generate entries.
TOTALS {{ number_format($summary['total_regular_hours'], 2) }} {{ number_format($summary['total_overtime_hours'], 2) }} LKR {{ number_format($summary['total_gross_pay'], 2) }} LKR {{ number_format($summary['total_epf_employee'], 2) }} LKR {{ number_format($summary['total_net_pay'], 2) }}
@if($payroll->payrollEntries->count() > 0)

Employer Contributions

EPF Employer (12%)

LKR {{ number_format($summary['total_epf_employer'], 2) }}

ETF Employer (3%)

LKR {{ number_format($summary['total_etf_employer'], 2) }}

Total Employer Cost

LKR {{ number_format($summary['total_employer_cost'], 2) }}

@endif
@endsection