private function returnError($error = false) { return response()->view('error', ['error' => $error ?: trans('texts.invoice_not_found'), 'hideHeader' => true, 'account' => $this->getContact()->account]); }