{{ __('Payroll') }} - {{ $months[$month] }} {{ $year }}

Calculate Payroll
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Period Selector --}}
{{-- Summary --}} @if($payrolls->count() > 0)
Total Gross
RM {{ number_format($summary['total_gross'], 2) }}
Total Commission
RM {{ number_format($summary['total_commission'], 2) }}
Total Net
RM {{ number_format($summary['total_net'], 2) }}
Employer Statutory
RM {{ number_format($summary['total_employer_cost'], 2) }}
@endif {{-- Payroll List --}}
@if($payrolls->count() > 0) @foreach($payrolls as $payroll) @endforeach
Employee Type Basic Commission Gross Deductions Net Status Actions
{{ $payroll->employee->name ?? '-' }} {{ $payroll->employee->employeeType->name ?? '-' }} RM {{ number_format($payroll->basic_salary, 2) }} RM {{ number_format($payroll->total_commission, 2) }} RM {{ number_format($payroll->gross_salary, 2) }} RM {{ number_format($payroll->total_employee_deduction, 2) }} RM {{ number_format($payroll->net_salary, 2) }} {{ ucfirst($payroll->status) }} View @if($payroll->status === 'calculated')
@csrf
@endif
@else

No payroll records for this period.

Calculate Payroll
@endif