user()?->can(Permission::EMPLOYEE_ADVANCES_PAY->value) ?? false; } public function rules(): array { return [ 'amount' => ['nullable', 'integer', 'min:1'], ]; } /** * @return array */ public function attributes(): array { return [ 'amount' => 'jumlah pembayaran', ]; } }