@extends('layouts.app') @section('content')

Process Payroll

{{ $company->name }} - Create New Payroll

Manage Types Back to Payroll
@csrf
Quick Payroll Templates
Select a template to auto-fill standard compensation packages
Employee & Period Information
@error('employee_id')
{{ $message }}
@enderror @if(count($processedEmployeeIds) > 0)
{{ count($processedEmployeeIds) }} employee(s) already have payroll processed for {{ $currentPeriod }} and are disabled to prevent duplicate processing.
@endif
@error('worked_months')
{{ $message }}
@enderror
@error('pay_date')
{{ $message }}
@enderror
@error('period_start')
{{ $message }}
@enderror
@error('period_end')
{{ $message }}
@enderror
Basic earnings
RM
@error('base_salary')
{{ $message }}
@enderror
Additional earnings
All configured earnings are displayed below. Enter amounts as needed.
Expense Claims Reimbursement 0 claims
No approved expense claims found for this employee in the current period.

@foreach($additionTypes->values() as $index => $type)
{{ $type->description }}
@endforeach
@if($additionTypes->isEmpty())
No additional earnings configured. Configure addition types
@endif
Deductions
All configured deductions are displayed below. Enter amounts as needed.
@php $deductionStartIndex = $additionTypes->count(); $nonStatutoryDeductions = $deductionTypes->where('is_statutory', false)->values(); @endphp @foreach($nonStatutoryDeductions as $index => $type) @php $actualIndex = $deductionStartIndex + $index; @endphp
{{ $type->description }}
@endforeach
Note: Statutory deductions (EPF, SOCSO, EIS, Income Tax) will be automatically calculated based on employee settings and gross pay.
Notes
@error('notes')
{{ $message }}
@enderror
Pay amount
Basic Pay
RM 5,000.00

Gross Pay
RM 5,000.00
Deductions

Net pay
RM 4,325.30

Company contribution
RM 650.00
Cancel
@push('scripts') @endpush @endsection