@php($canCreateCoaAccount = $canCreateCoaAccount ?? false)
{{ $title }}
@csrf @if(!empty($isEdit)) @method('PUT') @endif
@include('payroll.salary-components._account-picker', [ 'name' => 'expense_account_id', 'value' => old('expense_account_id'), 'listKey' => 'expense', 'placeholder' => 'Select account...', 'pickerClass' => 'sc-expense-picker', 'inputClass' => 'sc-expense-account', 'required' => true, 'allowAddNew' => !empty($canCreateCoaAccount), ])
Used as the Debit line in the payroll journal entry for this component.
@include('payroll.salary-components._account-picker', [ 'name' => 'liability_account_id', 'value' => old('liability_account_id'), 'listKey' => 'liability', 'placeholder' => 'Select liability account...', 'pickerClass' => 'sc-liability-picker', 'inputClass' => 'sc-liability-account', 'required' => true, 'allowAddNew' => !empty($canCreateCoaAccount), ])
Used as the Credit line in the payroll journal entry for this component.