@php use App\Support\EmployeePaymentChannel; use App\Support\Validation\KenyanFieldRules; $employee = $employee ?? null; $paymentChannelLabels = $paymentChannelLabels ?? EmployeePaymentChannel::labels(); $allowanceComponents = $allowanceComponents ?? collect(); $deductionComponents = $deductionComponents ?? collect(); $selectedAllowanceIds = $selectedAllowanceIds ?? []; $selectedDeductionIds = $selectedDeductionIds ?? []; $payComponentPreviewAmounts = $payComponentPreviewAmounts ?? []; $payComponentsConfigured = $payComponentsConfigured ?? false; $includeInPayroll = (bool) old('include_in_payroll', $includeInPayroll ?? $employee?->include_in_payroll ?? false); $selectedChannel = old('payment_channel', $employee?->payment_channel); $defaultRecipientName = trim(trim((string) old('first_name', $employee?->first_name ?? '')).' '.trim((string) old('last_name', $employee?->last_name ?? ''))); $bankHolder = old('bank_account_holder', $employee?->bank_account_holder ?: $defaultRecipientName); $mpesaName = old('mpesa_registered_name', $employee?->mpesa_registered_name ?: $defaultRecipientName); $showChannelDetails = filled($selectedChannel); $payrollBasicSalary = old('basic_salary', $payrollBasicSalary ?? $employee?->currentSalaryAssignment?->basic_salary); @endphp
Payroll
Active staff marked here are included when a payroll period is opened. Amounts for additions and deductions come from payroll settings.
Payroll additions and deductions are not configured yet. Add them under Accounting → Payroll settings.
@endif