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