user(); $response_data = Statics::company($user->getLocale() ?? $user->company()->getLocale()); if(request()->has('einvoice')){ $ro = new RO; $response_data['einvoice_schema'] = $ro(); } return response()->json($response_data, 200, ['Content-type' => 'application/json; charset=utf-8'], JSON_PRETTY_PRINT); } }