value; if (!$parsedValue || !Arr::isTrue($parsedValue, 'enabled')) { continue; } // Now check if conditions matched or not $isConditionMatched = $this->checkCondition($parsedValue, $booking); if ($isConditionMatched) { $item = [ 'id' => $feed->id, 'key' => $feed->key, 'settings' => $parsedValue, ]; $enabledFeeds[] = $item; } } return $enabledFeeds; } public function getNotificationFeeds($slotId, $feedMetaKeys) { return Meta::where('object_id', $slotId)->whereIn('key', $feedMetaKeys)->orderBy('id', 'ASC')->get(); } }