getStatus(); return response()->json([ 'settings' => $user->is_admin ? $settingRepository->getAllAsKeyValueArray() : [], 'playlists' => PlaylistResource::collection($user->playlists), 'playlist_folders' => PlaylistFolderResource::collection($user->playlist_folders), 'current_user' => UserResource::make($user, true), 'uses_last_fm' => LastfmService::used(), 'uses_spotify' => SpotifyService::enabled(), 'uses_you_tube' => YouTubeService::enabled(), 'uses_i_tunes' => $iTunesService->used(), 'allows_download' => config('koel.download.allow'), 'media_path_set' => (bool) $settingRepository->getByKey('media_path'), 'supports_transcoding' => config('koel.streaming.ffmpeg_path') && is_executable(config('koel.streaming.ffmpeg_path')), 'cdn_url' => static_url(), 'current_version' => koel_version(), 'latest_version' => $user->is_admin ? $applicationInformationService->getLatestVersionNumber() : koel_version(), 'song_count' => $songRepository->count(), 'song_length' => $songRepository->getTotalLength(), 'queue_state' => QueueStateResource::make($queueService->getQueueState($user)), 'koel_plus' => [ 'active' => $licenseStatus->isValid(), 'short_key' => $licenseStatus->license?->short_key, 'customer_name' => $licenseStatus->license?->meta->customerName, 'customer_email' => $licenseStatus->license?->meta->customerEmail, 'product_id' => config('lemonsqueezy.product_id'), ], ]); } }