where('code', $code) ->where('variant', $variant) ->where('is_active', 1) ->first(); if ($row) { return $row; } // Fallback to default variant $row = $this->where('code', $code) ->where('variant', 'default') ->where('is_active', 1) ->first(); return $row ?: null; } }