0, 'products' => 0, 'orders' => 0, ]; try { $catalogCounts = $this->catalog->syncAll($store, $store->user); $counts['categories'] = $catalogCounts['categories']; $counts['products'] = $catalogCounts['products']; } catch (\Throwable $e) { Log::warning('Woo catalog sync failed', [ 'store_id' => $store->id, 'message' => $e->getMessage(), ]); } try { $counts['orders'] = $this->orders->syncOrders($store); } catch (\Throwable $e) { Log::warning('Woo order sync failed', [ 'store_id' => $store->id, 'message' => $e->getMessage(), ]); } return $counts; } }