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